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 -l40p012e1


$ ls | tr '\n' ' '



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to