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

Re: A simple import() for those special moments

by sauoq (Abbot)
on Jan 19, 2003 at 00:45 UTC ( #228102=note: print w/ replies, xml ) Need Help??

in reply to A simple import() for those special moments

For the purposes you suggest, it would probably be just fine. You do have an error though; import() will be called with the package name (which is needed for inheritance but you probably don't care about it) so you'll need to shift it off of @_ or your sub will always die.

You also have a small syntax error on your last for line. (No ending paren.)

"My two cents aren't worth a dime.";
Comment on Re: A simple import() for those special moments
Replies are listed 'Best First'.
Re^2: A simple import() for those special moments
by Aristotle (Chancellor) on Jan 19, 2003 at 02:43 UTC
    File to post transition problems - I was shifting off the package name to a variable in the code, but it was a remainder from previous attempts I got rid off before posting. Of course, I forgot to change the if accordingly.. I also wasn't using the modifier form of for, that's where the superfluous opening paren (not a missing ending paren ;)) came from.

    Makeshifts last the longest.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2016-05-05 23:33 GMT
Find Nodes?
    Voting Booth?