Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: require Math::XOR

by Anomynous Monk (Scribe)
on Apr 08, 2004 at 23:23 UTC ( [id://343799]=note: print w/replies, xml ) Need Help??


in reply to require Math::XOR

use normally does a require and import; if you want to be able to call xor_buf without qualification, you need to say Math::XOR::->import() after the require.

You may still run into problems with perl parsing things differently than if it had known about the xor_buf sub at compile time. I'm guessing Math::XOR::xor_buf didn't work because of that (in which case make sure it looks like a function call to perl, e.g. &Math::XOR::xor_buf("a","b") with & and ()) or because you got the case of some part of the name wrong.

Replies are listed 'Best First'.
Re: Re: require Math::XOR
by tilly (Archbishop) on Apr 08, 2004 at 23:37 UTC
    I was going to say that calling import multiple times under warnings could trigger spurious warnings. It can, but it doesn't in this case.

    Live and learn.

Log In?
Username:
Password:

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

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

    No recent polls found