in reply to Adding Numbers
If you'd actually run this code, you would have seen:
Useless use of private variable in void context at <scriptname> line 1 +5.
Perl is telling you what's wrong and where the problem is. Perhaps you could at least make some minimal effort before posting here. There's only 5 characters on line 15 - hardly a major debugging task.
If you didn't understand the message, then that should have been your question. And, if that is the case, add use diagnostics; to the top of your code to get more verbose messages.
Please read: How do I post a question effectively?
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding Numbers
by NastyPenguin (Initiate) on Nov 21, 2010 at 05:47 UTC | |
by kcott (Archbishop) on Nov 21, 2010 at 06:19 UTC |