in reply to Re^2: Execution of a script
in thread Execution of a script

I know what I mean. Why don't you?

Did you check the contents of the $file variable? e.g. die("Can not open input file $file: $!");

Replies are listed 'Best First'.
Re^4: Execution of a script
by waytoperl (Beadle) on Sep 26, 2014 at 19:22 UTC

    Need to use 2 modules or provide full path of input file.

    use File::Spec; use FindBin;

    Thanks