On 0:59:22 08/01/2008 "Robert Citek" <[EMAIL PROTECTED]> wrote: > How can I get rid of the @foo? > $ ls | perl -e '@foo=<>; chomp @foo ; print join(" ", @foo)'
hi! ls | perl -pe 's/\n\ /' perldoc perlrun: -p causes Perl to assume the following loop around your program, which makes it iterate over filename arguments somewhat like sed: LINE: while (<>) { ... # your program goes here } continue { print or die "-p destination: $!\n"; } HTH, Martin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/