in reply to Re: VVP:Perl oneliners for Unix commands
in thread VVP:Perl oneliners for Unix commands
Since 5.6 glob does not use a shell to expand filesystem wildcards.$ ls Hold/* |wc /bin/ksh: /usr/bin/ls: arg list too long 0 0 0 $ ls Hold |wc 169170 169170 2739945 $ perl -lwe'@x=<"Hold/*">;print 0+@x' 0 $ perl -lwe'@x=glob"Hold/*";print 0+@x' 169170 $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: VVP:Perl oneliners for Unix commands
by tye (Sage) on Mar 14, 2002 at 15:29 UTC |