Hello,
I have a file.txt that has a list of path/filenames like:
a/b/c/filename1.someext
b/c/filename2.sh
d/e/f/g/filename3.exe
I need to read that file and split each line it into a path and a filename.
This is my code so far:
#$ps is my path separator - could be \ or /
open theInputFile, $inputFile or die "Could not read from $inputFile,
+program halting. \n";
while (<theInputFile>)
{
chomp;
my $fileBeingChecked = "$_";
my $fileName = (split /\${ps}/,$fileBeingChecked)[-1];
my $path = NOT SURE WHAT TO DO HERE