Hi,

Wagner, David --- Senior Programmer Analyst --- CFS <david.wag...@fedex.com> 
wrote:
>       Here is the sample script I was playing with:
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> 
> my $MyLine1 = q[%2d  %5s  %6s];
> my $MyLine2 = q[%2d  %5s \n%6s];

The q// operator is equivalent to single quotes, so escape sequences like \n 
are not interpolated.

If you want \n to be expanded to a newline character, you need to use qq or 
double quotes, or a combination of q// and qq// or quotes and text 
concatenation.

HTH,
Thomas

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to