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!!!
C:\Program Files\Zombie>perl C:\Users\Desktop\Dist_Folder\filerun.pl
Can not open input file: No such file or directory at ...line xyz
Dependency in Zombie folder make's me to run script from Zombie. Thanks for help!