On 4/6/06, Michael Goldshteyn <[EMAIL PROTECTED]> wrote: > Point taken about the call to join(). > > 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. >
Then you're not telling us everything. For me, 'dir' and 'perl -e "print `dir`"' produce exactly the same output. This is on Win2k Pro since dir is an OS-specific command, I suppose it's possible is behaves differently in other windows versions. I don't know, I'm not really a windows guy. I doubt that, though. Do you have your command line dir aliased to something? Do you have your DIRCMD environment variable set? It sounds like maybe you're calling DIR /B in your perl script for some reason. Is the perl script executing as a differnt user with DIRCMD set to DIR /B? Whatever's going on here, it's a system configuration issue, not a perl issue. HTH, -- jay -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.dpguru.com http://www.engatiki.org values of β will give rise to dom!