Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[ITT] Perl tricks/idioms

Name: ᴍʀ. ᴠɪʟᴇ !PRoGN.piPE 2011-05-27 8:21

I'll start:

my $buffer = "";
open my $fh, ">", \$buffer or die;

will let you treat $fh as a real filehandle

--

you can use ;__; as a spacer/indicator for bad code

--

&{{
    derp    =>  sub { print "test" },
    herp    =>  sub { print "yes!" },
}->{$ARGV[0] or 'herp'}}

--

keep em coming

Name: Anonymous 2011-05-27 8:52

$fh = ANUS;

Name: Anonymous 2011-05-27 11:16

use v6;

Only with supported interpreter/compiler versions. Improves all aspects of the language.

Name: Anonymous 2011-05-27 12:01

>>3
Basically this. Perl 5 is shit.

Name: Anonymous 2011-05-27 19:28

>>-
idiots

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List