Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Variable Scope (updated)

by haukex (Archbishop)
on Nov 10, 2017 at 16:55 UTC ( [id://1203130]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN {
        my $static_val = 0;
    ...
        state $static_val = 0;
        return ++$static_val;
    }
    
  2. or download this
    $ perl -e 'my $x if 0'
    Deprecated use of my() in false conditional. This will be a fatal erro
    +r in Perl 5.30 at -e line 1.
    

Log In?
Username:
Password:

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

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

    No recent polls found