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

Re^3: (nearly) readonly globals

by Corion (Pope)
on Jan 19, 2009 at 20:35 UTC ( #737396=note: print w/ replies, xml ) Need Help??

in reply to Re^2: (nearly) readonly globals
in thread (nearly) readonly globals

Yes - see local, resp. the documentation referenced by it, Private Variables via my() in perlsub.

Comment on Re^3: (nearly) readonly globals
Replies are listed 'Best First'.
Re^4: (nearly) readonly globals
by haoess (Curate) on Jan 26, 2009 at 18:49 UTC

    I don't give up:

    % bleadperl -Mstrict -wE 'for $1 ( 10..13 ) { say $1 }' 10 11 12 13

    And now, these globals loose their magic:

    % bleadperl -Mstrict -wE 'for $1 ( 10..13 ) { $1 =~ /^(\d)/; say $1 }' 10 11 12 13

    -- Frank

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2015-11-26 07:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls