Hi, Wagner, David --- Senior Programmer Analyst --- CFS <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
