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

Any other ideas guys

Replies are listed 'Best First'.
Re^5: Help on foreach loop
by Not_a_Number (Prior) on Sep 09, 2004 at 17:45 UTC

    Try

    $newfile = shift @ARGV;
      Where ?? I think after all this trouble shooting i am not able to follow you
        I tried it again, it gives me another filename besides the one that matches, I am trying to head to the below route now
        $newFile = `grep -l $commonField $responseDir/*`;
        The problem that i am facing now is that when grep dosen't return a match, I don;t know what value is stored in $newFile, how to check if value in $newFile is null or not