Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Conditional module use

by Nkuvu (Priest)
on Apr 21, 2006 at 17:18 UTC ( [id://544986]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Conditional module use
in thread Conditional module use

That works perfectly, thank you.

But I'm a little unclear on the reason. What's the difference between a subroutine and a method in Perl?

Replies are listed 'Best First'.
Re^3: Conditional module use
by chromatic (Archbishop) on Apr 21, 2006 at 17:37 UTC

    I don't know what gaal was thinking, but that's not it. The problem is that Term::ReadKey::ReadMode in Term::ReadKey::ReadMode 2; is a bareword unless you load Term::ReadKey. With strict enabled, Perl gives a warning instead of trying to disambiguate what you meant.

    For this reason, a lot of people recommend always using parentheses around all subroutine and method call arguments.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://544986]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.