in reply to Re: Correct pathway to a file
in thread Correct pathway to a file
Hi blue cowdawg
I tried this within the sub
my $fname = join("/",$_);
my $INP = $_;
open (FIN, "<$fname") or die "$fname$!";
my @words =<FIN>;
because I sent my sub the file+directory like you showed, and also an integer which has to be used later in the sub.
But even the short script you sent earlier only works if I have copies of the text file at the directory where I specify and also where my perl script is stored.