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

Re: Bad return value from a block with variable localization

by codeacrobat (Chaplain)
on Apr 10, 2006 at 11:41 UTC ( #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
Node Status?
node history
Node Type: note [id://542260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2019-11-15 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (80 votes). Check out past polls.

    Notices?