Rick wrote:
perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";'
Is there anyway to incoporate $\ <- output record separtor to do this
instead of printing out w/ manual spaces beteween the variables?
The Output Record Separator is what comes at the end of the record (or
line in this case), in other words at the end of the print statement.
You are thinking of a Field Separator, but Perl doesn't have an Output
Field Separator, just an Input Field Separator (see the -F switch.)
You could just print out a single string:
perl -lane'print "$F[0] $F[4] $F[5]"'
John
--
Those people who think they know everything are a great
annoyance to those of us who do. -- Isaac Asimov
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/