Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Where does perl looks for perl skripts [Answered]

by ikegami (Patriarch)
on Sep 21, 2014 at 02:04 UTC ( [id://1101420]=note: print w/replies, xml ) Need Help??


in reply to Where does perl looks for perl skripts [Answered]

perl doesn't look anywhere but where you specify. For example,

  • perl foo.pl looks for foo.pl in the current directory of the current drive.
  • perl bar\foo.pl looks for foo.pl in subdir bar of the current directory of the current drive.
  • perl \bar\foo.pl looks for foo.pl in subdir bar in the root directory of the current drive.
  • perl d:foo.pl looks for foo.pl in the current directory of the specified drive.
  • perl d:bar\foo.pl looks for foo.pl in subdir bar in the current directory of the specified drive.
  • perl d:\bar\foo.pl looks for foo.pl in subdir bar in the root directory of the specified drive.
  • perl \\host\share\bar\foo.pl looks for foo.pl in subdir bar in the specified share of the specified host.

If you want Windows to search the path for foo.pl, you'll have to ask Windows to execute foo.pl instead of perl. Some configuration may be required.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1101420]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found