Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 avoiding work at the Monastery: (4)
As of 2014-08-31 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls