in reply to Re^2: Help with Guessing Game
in thread Help with Guessing Game
I'm really confused at this point, my instructor told me to get all the guessing and put them in an array so are you saying I should use push to add onto the @allguess array each time the user enters a number.
There is no put function, see perldoc -f push
$ perl -MData::Dump -e " @a = 1; dd\@a; @a = 2; dd\@a "; [1] [2] $ perl -MData::Dump -e " push @a, 1; dd\@a; push @a, 2; dd\@a "; [1] [1, 2]
For future reference, perlintro, brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts , Re^8: How to use wxHtmlEasyPrinting (On debugging, verify everything, talk to teddybear ... and links and links , Tutorials: Perl documentation documentation, Searching Perl Documentation
|
|---|