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

Re: Use of uninitialized value in concatenation (.) or string

by Cristoforo (Deacon)
on May 16, 2013 at 03:27 UTC ( #1033759=note: print w/ replies, xml ) Need Help??


in reply to problem in for loop

I think you have an error here:

if ($a=$b=$c=$d=$x=$w=$y=$z = 0)

That will never be true - it is just assigning 0 to all those variables. I think you meant to check that they are all zero. To do that, you would want this code:

if (0 == grep $_ != 0, $a,$b,$c,$d,$x, $w,$y,$z) { say "all zero"; }


Comment on Re: Use of uninitialized value in concatenation (.) or string
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-06 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls