Do you know where your variables are? | |
PerlMonks |
Re^4: 2008 Winter Scripting Games have begunby xdg (Monsignor) |
on Feb 18, 2008 at 18:28 UTC ( [id://668635]=note: print w/replies, xml ) | Need Help?? |
But it's a good challenge to think through. Though I ran it against my unix dictionary list, I was able to get it to 5 lines -- not counting strict and warnings. I could see how with a little "do" or "and" trickery or golfing, I could make it 4 or less, but it's not really the point, I guess. (E.g. "say 'Enter number' and my $num = <STDIN>") And as you said, it's very fast. Maybe I should enter after all. -xdg Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Perl News
|
|