in reply to Access given folder to parse a file

"I am trying to provide a folder name and a file information for parsing"
use File::Slurp; my @dir = read_dir($ARGV[0]); my $file = $ARGV[1]; if ($file ~~ @dir){ print uc"$file FOUND"; } else{ print uc"$file not found"; } #usage - script_name.pl [directory] [file_name] #eg. - script_name.pl [folder(1)] [my_log_file.log]
this simply will take your first arg and read the specified directories contents into the array "@dir". then it will take the second argument "$file" and chomp it so there is no trailing unwanted characters or spaces.
THEN in the if statement, it simply looks for the filename in the array "@dir" (which contains all the filenames from the directory you specify.)

you should be able to specify any directory in the script as in "folder(1)" OR you should be able to do something like "C:/path/to/folder(1)".