perloneliner
-
awesome japh one-liner
about 3 hours ago
from Echofon
-
why print, when you can goto
2:57 PM Nov 30th
from Echofon
-
-MDevel::Caller=called_with -le 'sub hello { join " "=> (caller 0)[3], called_with(0,1)} print hello($world);'
12:53 PM Nov 30th
from Echofon
-
-MString::CamelCase=decamelize -le 'print decamelize "IHateCamelCase"'
11:41 PM Nov 29th
from Echofon
-
a fibonacci one-liner
6:43 AM Nov 29th
from Echofon
-
howto download youtube videos with a perl one-liner.
10:46 PM Nov 23rd
from Echofon
-
primitive grep -C replacement -e '($c,$p,@)=@;@=<>;print$/,@[$_-$c..$c+$_] for grep $l[$_]=~/$p/,0..$' 2 bash /etc/passwd
12:25 PM Nov 12th
from Echofon
-
-0777 rockz
11:26 AM Nov 10th
from Echofon
-
I just helped a colleague to escape some javascript for later use in post requests: cat invx.js| -MURI::Escape -pe '$_=uri_escape($_)'
8:34 AM Nov 8th
from Echofon
-
-e 'print "daylight saving ", (localtime)[8] ? "active" : "inactive"'
9:56 PM Oct 25th
from Echofon
-
phonetic grepping -MText::Metaphone -ne 'print if Metaphone("beer") eq Metaphone($_)' /usr/share/dict/words
2:17 PM Oct 22nd
from Echofon
-
lynx -dump equivalent GET twitter.com | perl -MHTML::FormatText::WithLinks -0777ne 'print HTML::FormatText::WithLinks->new->parse($_)'
11:43 PM Oct 9th
from Echofon
-
fortune | perl -MAcme::LOLCAT -0777ne 'print translate $_'
11:10 AM Oct 8th
from Echofon
-
5.11 is out finally some mess gets cleaned up perl5.11.0 -we '$[=4711'
11:42 PM Oct 4th
from Echofon
-
-MProc::Killall -e 'killall "TERM", "xterm"'
8:38 AM Oct 1st
from Echofon
-
perl -MDevel::Symdump -E 'say for Devel::Symdump->new("Devel::Symdump")->functions'
11:05 PM Sep 24th
from Echofon
-
lots of useful tools e.g.corelist Data::Dumper
11:23 PM Sep 22nd
from Echofon
-
just another obfu $ echo -e 'use Acme::Enc;\nprint "hello world"' > enc.pl;perl enc.pl; perl enc.pl
2:20 PM Sep 21st
from Echofon
-
autobox too cumbersome -Mautobox::Core -MMP3::Tag -e'[glob"*.mp3"]->map(sub{[MP3::Tag->new($_)->autoinfo]})->map(sub{"@$_\n"})->say'
11:21 PM Sep 19th
from Echofon
-
golfed OO, use poping constructors -e 'package P;sub new{bless pop}; P->new({foo=>bar})'
12:28 PM Sep 19th
from Echofon
|
- Name perloneliner
- Location "$^X land"
- Web http://twitter.co...
- Bio WARNING: You need to have a basic understanding of perl. 140 chars might not cover sensible safety features. Not for blindly use in production.
|