Re: output record separator in one liner

2009-04-14 Thread Rick
Chas. Owens wrote: On Mon, Apr 13, 2009 at 15:39, 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? snip No, you want to use $, or $". Si

Re: output record separator in one liner

2009-04-13 Thread John W. Krahn
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

Re: output record separator in one liner

2009-04-13 Thread Chas. Owens
On Mon, Apr 13, 2009 at 15:39, 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? snip No, you want to use $, or $". Since $" is already se

output record separator in one liner

2009-04-13 Thread Rick
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? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@pe