in reply to Help on foreach loop

... why my $newFile variable ...

It actually does need to be:

my $newFile ...

Also, your while block should include the print and if block.

Regards,

PN5

Replies are listed 'Best First'.
Re^2: Help on foreach loop
by Anonymous Monk on Sep 09, 2004 at 14:55 UTC
    didn't work, maybe my syntax might be wrong, is it possible for you to post the changes thanks