Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Bad return value from a block with variable localization

by jesuashok (Curate)
on Apr 10, 2006 at 08:09 UTC ( #542227=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    
    print foo().' '.foo('baz')."\n"; # that was expected
    print bar().' '.bar('baz')."\n"; # undef
    
  2. or download this
    ##################################################
    Expected output:
    ...
    0
    
    ##################################################
    

Log In?
Username:
Password:

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

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



    Results (80 votes). Check out past polls.

    Notices?