Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Segmentation fault

by Utilitarian (Vicar)
on Feb 08, 2012 at 13:44 UTC ( #952501=note: print w/ replies, xml ) Need Help??


in reply to Segmentation fault

Your copy of the @vals array may be copying an undefined value so perhaps you should check the values before setting them in the new array.

for my $i (0..$#vals){ $tot_mem[$i]=$vals[$i][1]?$vals[$i][1]:0; }
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."


Comment on Re: Segmentation fault
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://952501]
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 2015-08-01 03:30 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 (285 votes), past polls