Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: why isn't current dir (".") in my @INC ?

by swampyankee (Parson)
on Feb 23, 2007 at 02:25 UTC ( [id://601671]=note: print w/replies, xml ) Need Help??


in reply to why isn't current dir (".") in my @INC ?

CPAN -- and probably ppm -- don't add . to the @INC list as including the current working directory in a path used by everybody (which is what @INC will generally be) is usually a Bad Idea™. Were @INC include ., it would be possible for a malign person to include a fake module with a name like 'strict' to perform all sorts of unpleasant tasks, up to and including cd /;rm -fr *.

emc

Insisting on perfect safety is for people who don't have the balls to live in the real world.

—Mary Shafer, NASA Dryden Flight Research Center
  • Comment on Re: why isn't current dir (".") in my @INC ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found