2019
A (very) simple webserver using the perl module HTTP::Server::Simple::CGI
give it a spin, see it helps automating remote playlist maintenance.
2018
2013
Regular Expressions Cheat Sheet by DaveChild - Cheatography.com
? where does my regexp mismatch ?
die "wrong pattern on $`//$+//$'";
2011
Perl file size tutorial - How to get the size of a file in Perl using file test operators.
(via)no fseek(END), ftell(), fseek(BEGIN) hack anymore.
Just $filesize = -s $filename
/me love PERL ;)
perlfaq6 - what is /o really for ?
(via)The /o option for regular expressions (documented in perlop and perlreref) tells Perl to compile the regular expression only once.
This is only useful when the pattern contains a variable.
Perls 5.6 and later handle this automatically if the pattern does not change.
Perle fraƮche - Linux Attitude
(via)Un chouette bouquin pour exploiter au mieux le CPAN, donc, dirait-on.
2010
An eight-line REPL in Perl.
(via)interesting, but a bit crude on the input (only raw, no history) and ...
@x = (paul john george ringo)
just prints out "4" :-/
you have to type "@x" to actually get the beatles displayed.
Simple DirectMedia Library Bindings for Perl
would you like to code graphical things in Perl ?
Well, it took me 11 CPAN package to install manually, some of which turns out to have version conflicts, with no clear benefit but to be able to rebuild SDL from source in Build.PL.
At the end fo the day, the SDL-2.530 perl module doesn't pass the tests. Time has been wasted, unfortunately
2009
Leaning toothpick syndrome - Wikipedia, the free encyclopedia
(via)When you wish " wasn't " but ' or whatever else ...
print qq|$text|;
m{ftp://[^/]*/pub/}
2008
GD.pm - Interface to Gd Graphics Library - search.cpan.org
maybe it'll be supported on sourceforge (?)
inotify for Linux - Edoceo, Inc.
(via)given that you installed the package liblinux-inotify2-perl, you can quite simply get notifications in PERL. Here's how ^_^
nb: bindings also exists for python and ruby, and inotify-tools package provide watch & wait commands suitable for shell-scripters.
2007
XML::XPath - a set of modules for parsing and evaluating XPath statements - search.cpan.org
programmable expressions to access items in an XML document ... massively used in meta-workbench project.
2006
perl.com: Perl Command-Line Options
e.g. perl -n -e 'some code' file1
Then Perl will interpret that as:
LINE:
while (<>) {
# your code goes here
}
...
and much more of the like ^_^
1
(14 marks)