Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Avoiding Global Vars

by Melly (Hermit)
on Sep 23, 2009 at 15:29 UTC ( #797000=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Avoiding Global Vars
in thread Avoiding Global Vars

Ah, but I might (stupidly) do something like:

my $urx = 0; # no warning on mistyped $vrx
print $vrx; # get's old $vrx

As for more meaningful/distinctive, vrx, for reasons relating to the specific tech I'm working with, is very meaningful...

Thanks again.

map{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
Tom Melly, pm (at) cursingmaggot (stop) co (stop) uk


Comment on Re^4: Avoiding Global Vars
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-04-16 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (436 votes), past polls