Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Using the modules I want to use.

by BrowserUk (Patriarch)
on Nov 02, 2002 at 06:26 UTC ( [id://209906]=note: print w/replies, xml ) Need Help??


in reply to Using the modules I want to use.

cal perlfunc:use docs say

It is exactly equivalent to BEGIN { require Module; import Module LIST; }

I discovered earlier today (yesterday) that one difference with require is that you can use a full path to the module
(eg. '/u/web/dom/cgi-local/GD.pm') instead of the bareword that use insists on.

I am not sure if there are any caveats with doing this yourself using BEGIN{ require '/path/to/module.pm'; } but it is documented and it does work. Maybe you could try this until or unless someone identifies reasons why it shouldn't be done.


Nah! Your thinking of Simon Templar, originally played by Roger Moore and later by Ian Ogilvy

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-16 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found