The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;

use Win32::EventLog::Carp qw(croak click);

my $num = shift || 144;
$num < 0 and croak "Attempted to find square root of $num\n";

# to STDERR and the Application Event Log
click("Square root of $num is " . sqrt($num));