Michael Goldshteyn wrote:
Point taken about the call to join().
perl -e 'print for `dir`;' Is even sexxierr :)
With regards to the difference between the two samples, the difference is larger than new-lines. DIR from the command line shows info about file like their date of last change and size. It also shows how many bytes are used in the directory being DIRed and how many bytes are free. DIR when called through back-ticks only shows the file names of the files in the directory specified. Nothing more and nothing less.
Because you running is different than perl running it, see dir's docs, devels, or source to find out how it determines what to output.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>