On Tue, Jan 08, 2008 at 08:07:02AM -0800, Paul Lalli wrote: > On Jan 7, 6:59 pm, [EMAIL PROTECTED] (Robert Citek) wrote: > > How can I get rid of the @foo? > > > > This does what I want, but uses the "temporary" variable @foo: > > > > $ ls | perl -e '@foo=<>; chomp @foo ; print join(" ", @foo)' > > > > This eliminates the temporary variable but doesn't work: > > > > $ ls | perl -e 'print join(" ", chomp(<>))' > > ls | perl -e' print join(" ", map { chomp; $_ } <>)'
ls | perl -l40peachy -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/