Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: 2008 Winter Scripting Games have begun

by xdg (Monsignor)
on Feb 18, 2008 at 18:28 UTC ( [id://668635] : note . print w/replies, xml ) Need Help??


in reply to Re^3: 2008 Winter Scripting Games have begun
in thread 2008 Winter Scripting Games have begun

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.

  • Comment on Re^4: 2008 Winter Scripting Games have begun