Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

(tye)Re4: When to use Prototypes?

by tye (Cardinal)
on Nov 09, 2001 at 23:59 UTC ( #124457=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    > Perl -MO=Deparse -w
    use strict;
    sub DEBUG() { 0 }
    ...
    print $My::Package::hash{'key'}, $/;
    print 8.141592, $/;
    - syntax OK
    
  2. or download this
    sub DEBUG {
        0;
    }
    ...
    print SymRef()->{'key'}, $/;
    print PI() + 5, $/;
    - syntax OK
    
  3. or download this
    Can't use string ("My::Package::hash") as a HASH ref
    while "strict refs" in use
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (16)
As of 2014-07-11 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls