[ Create a new account ]
I think I won my first golf tournament.
OK, so I cheated. :-O
print $ARGV[0]**.5 ## Starting solution: 18 strokes print$ARGV[0]**.5 ## Extraneous whitespaceprint shift()**.5 ## D'OH! ()'s needed hereprint pop()**.5 ## Single-arg version: 15 strokes
Get More Comments
Reply
Golf Swings (Score:2)
Re:Golf Swings (Score:2)
Re:Golf Swings (Score:2)
OK, it gives you some extra info about something happening line 1, but hey, you get the value anyway
(die shift()**.5,$/ is longer)
mirod