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

Re: A Case with 5 Var's

by Melly (Hermit)
on Jan 25, 2007 at 11:59 UTC ( #596454=note: print w/replies, xml ) Need Help??

in reply to A Case with 5 Var's

If restructuring your code to use a hash is too awkward, you can assign you vars to an array and quickly check that - e.g. (untested)

$var1 = 'hello'; $var2 = 0; $var3 = ''; @array = ($var1, $var2, $var3); foreach(@array){ print "empty\n" if $_ eq ''; }
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,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596454]
[erix]: the stuff is pretty high up as I understand it; I have not felt any effect on lungs/breathing
[LanX]: Apocalypse Wow
[Corion]: Yeah, FF isn't great but Chrome isn't great either. They added some features to the devtools but broke (at least since yesterday) sending custom headers and overriding the UA header

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-10-17 12:37 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (230 votes). Check out past polls.