Note: You can also get the arguments out using the <> operator. From "Learning Perl":
Another way to read input is with the diamond operator: <>. This works like <STDIN> in that it returns a single line in a scalar context (undef if all the lines have been read) or all remaining...
Thanks, at least I know I'm not going nuts. . . well, maybe I know that. . .
btw, I've also been having a smaller issue with XP not correctly recognizing the Ctrl-Z as the end-of-input -- it's printing out ^Z. It seems to do this sporadically; sometimes if I press Ctrl-C afterwards it proceeds...
I'm going through the exercises in Llama, and have come on an odd phenomenon. The code seems to be completely skipping the first print call. However the first function call to &total succeeds (I know because my previous code hadn't set the value of $total to zero at the start of the sub, and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.