Dr Manhattan has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
When I open a file within a directory, does a copy of that file have to be located in the same directory as where my perl script is stored?
Because when I don't have a copy of the file where the script is stored, cmd returns the filename along with "No such file or directory" error.
I want to be able to open any file in any directory without it having to be stored in the same place as my perl script
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Correct pathway to a file
by tobyink (Canon) on Jan 10, 2013 at 13:13 UTC | |
Re: Correct pathway to a file
by johngg (Canon) on Jan 10, 2013 at 14:12 UTC | |
Re: Correct pathway to a file
by vinoth.ree (Monsignor) on Jan 10, 2013 at 13:13 UTC | |
Re: Correct pathway to a file
by blue_cowdawg (Monsignor) on Jan 10, 2013 at 15:00 UTC | |
by Dr Manhattan (Beadle) on Jan 10, 2013 at 19:26 UTC | |
by blue_cowdawg (Monsignor) on Jan 10, 2013 at 19:45 UTC | |
Re: Correct pathway to a file
by Anonymous Monk on Jan 11, 2013 at 02:40 UTC |
Back to
Seekers of Perl Wisdom