Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: I need help

by NetWallah (Canon)
on Mar 12, 2014 at 02:57 UTC ( [id://1077959]=note: print w/replies, xml ) Need Help??


in reply to I need help

We always recommend you put "use strict;" at the start of each program

If you had done so, and added "my" to each variable, the compiler would have told you:

Variable "$rolldie" is not imported at test-dice.pl line 9. Variable "%tally" is not imported at test-dice.pl line 18. Variable "%tally" is not imported at test-dice.pl line 19. Global symbol "$rolldie" requires explicit package name at test-dice.p +l line 9. Global symbol "%tally" requires explicit package name at test-dice.pl +line 18. Global symbol "%tally" requires explicit package name at test-dice.pl +l
All of which you would need to fix, in order to get your program to work.

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found