in reply to Re^2: Help on foreach loop
in thread Help on foreach loop

I think it's still needed, even if it doesn't fix your apparent problem. Have you printed out @ARGV before and after the while loop to see if it is as you expect? I suggest lots of print statements or a run through with perl -d.

Replies are listed 'Best First'.
Re^4: Help on foreach loop
by Anonymous Monk on Sep 09, 2004 at 17:24 UTC
    Any other ideas guys

      Try

      $newfile = shift @ARGV;
        Where ?? I think after all this trouble shooting i am not able to follow you