#$ps is my path separator - could be \ or / open theInputFile, $inputFile or die "Could not read from $inputFile, program halting. \n"; while () { chomp; my $fileBeingChecked = "$_"; my $fileName = (split /\${ps}/,$fileBeingChecked)[-1]; my $path = NOT SURE WHAT TO DO HERE