Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: confused with summing certain elements from an array

by andreas1234567 (Vicar)
on Nov 20, 2007 at 12:51 UTC ( [id://651917]=note: print w/replies, xml ) Need Help??


in reply to confused with summing certain elements from an array

Remember to use warnings and strict (put it on the first lines of your code):
use warnings; use strict;
In this case you will be warned that you did not properly quote your input. See Quote and Quote-like Operators in perlop for more. Good luck with your homework (and thank you for admitting that it is actually homework).
--
Andreas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-24 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found