Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Calling Functions

by eclpmb (Hermit)
on Mar 28, 2012 at 08:31 UTC ( [id://962100]=note: print w/replies, xml ) Need Help??


in reply to Re: Calling Functions
in thread Calling Functions

The main thing is that you're using prototypes. Generally prototypes aren't needed, aren't used and can be harmful unless you're very careful. If you define test2 as
sub test2 { print "test2: Working\n"; }
you'll find you're able to call it before it's defined, without getting a warning.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-24 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found