Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Bad return value from a block with variable localization

by codeacrobat (Chaplain)
on Apr 10, 2006 at 11:41 UTC ( [id://542260]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    print foo() . ' ' . foo('baz') . "\n";    # 1 0
    print bar() . ' ' . bar('baz') . "\n";    # also 1 0
    
  2. or download this
     #!/usr/bin/perl
    
     use strict;
    ...
    
     print foo() . ' ' . foo('baz') . "\n";    # 1 0
     print bar() . ' ' . bar('baz') . "\n";    # 11 0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found