Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

  (email not shown publicly)

I work for MessageLabs [] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • You could shave some strokes off of that:
    print $ARGV[0]**.5    ## Starting solution: 18 strokes

    print$ARGV[0]**.5     ## Extraneous whitespace
    print shift()**.5     ## D'OH! ()'s needed here
    print pop()**.5       ## Single-arg version: 15 strokes
    :-) ** 2