Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: TMTOWTDI the new year!

by wog (Curate)
on Dec 23, 2001 at 09:03 UTC ( #134020=note: print w/replies, xml ) Need Help??

in reply to TMTOWTDI the new year!


# ASCII specific print"SQQS"^"aaaa" #23456789012345678 # 1

update: If we don't care about strict we can do:

print+SQQS^aaaa #23456789012345 # 1

Not golfing:

use LWP::Simple; print get("!") =~ /printing "(\d+)"/; # or print y/a// for qw(aa bb bb aa); # or

update: Oops. I didn't type kill in here orginally:

print kill($$-$$,@$_) for [$$,$$], [], [], [$$,$$]; # or use Fcntl qw(:seek); print SEEK_END, SEEK_SET, SEEK_SET, SEEK_END; # or $_ = "weirdness"; print y ueuu, y fuff, y sfss, y esee;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://134020]
[Lady_Aleena]: perl -e 'my $var = "1.0"; print $var;' if it is in a variable also returns 1.0, though perl -e 'my $var = 1.0; print $var;' returns 1.
[1nickt]: In my case I can simply pass sprintf '%.1f', 1.0 (to Types::Standard:: Int), but what if you didn;t know the precision of the number you were working with? Seems I must be missing something. Oh well, my test list is complete, mooving on ...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-05-24 18:49 GMT
Find Nodes?
    Voting Booth?