waytoperl has asked for the wisdom of the Perl Monks concerning the following question:
If filerun.pl executed from Dist_Folder, there is no error
C:\Users\Admin\Desktop\Dist_Folder\perl filerun.pl
#!/usr/bin/env perl -w use strict; use warnings; use Diagnostics; my $file = "InFile.csv"; { open( INFILE, "$file" ) or die("Can not open input file: $!"); close(INFILE); }
I'm trying to run filerun.pl in a Zombie folder and getting error message!!!
Can not open input file: No such file or directory at ...line xyzC:\Program Files\Zombie>perl C:\Users\Desktop\Dist_Folder\filerun.pl
Dependency in Zombie folder make's me to run script from Zombie. Thanks for help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Execution of a script
by choroba (Cardinal) on Sep 26, 2014 at 16:01 UTC | |
by waytoperl (Beadle) on Sep 26, 2014 at 16:08 UTC | |
by Anonymous Monk on Sep 26, 2014 at 16:13 UTC | |
by waytoperl (Beadle) on Sep 26, 2014 at 19:22 UTC | |
|
Re: Execution of a script
by Anonymous Monk on Sep 26, 2014 at 16:02 UTC | |
by waytoperl (Beadle) on Sep 26, 2014 at 16:15 UTC |