On Sunday, July 14, 2002, at 09:02 , Lars wrote:

> Finding files that matches "*.jpg" recurse. And getting the answer as a
> list.
> Well that is not how to do it....
>
>
> $files = system("find /mnt/flash -name \"*.jpg\" ");
> print "$files";

p0: that is not how you get input back from a 'child process'.

        my @files =`"find /mnt/flash -name \"*.jpg\" "`;

would solve one way of doing that....

p1: what I would recommend is

        perldoc File::Find

since that will give you the perl native interface
for doing finds....

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to