Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: global variable initialization inside try{}

by ikegami (Patriarch)
on Apr 09, 2009 at 15:39 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://756640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-26 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found