Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: global variable initialization inside try{}

by ikegami (Pope)
on Apr 09, 2009 at 15:39 UTC ( #756640=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    f();
    g();
    
  2. or download this
    >perl589\bin\perl test.pl
    Use of uninitialized value in concatenation (.) or string at test.pl l
    +ine 9.
    ...
    >perl5100\bin\perl test.pl
    f: test
    g: test
    
  3. or download this
    >perl589\bin\perl -wle"{ my $s='test'; sub f { print 's: ', eval '$s' 
    +} } f()"
    Use of uninitialized value in print at -e line 1.
    ...
    Variable "$s" is not available at (eval 1) line 2.
    Use of uninitialized value in print at -e line 1.
    s:
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-08-22 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (147 votes), past polls