:: home : bio : blog : art
My copy of Alexej Von Jawlensky "Girl with Red Ribbon", oil, 2024 (detail)
November
Sun Mon Tue Wed Thu Fri Sat
         
21 22 23
24 25 26 27 28 29 30

Contact


 

Archives

Recent Posts

Tue, 01 Feb 2011
Perl @ Linux Conf Au
# 11:54 in ./perl

Jacinta Richardson did a Perl best practices talk at Linux Conf Au in Brisbane Australia recently.

It was a pretty good talk and overview of some of the more recent Perl functionality. The emphasis is on writing decent and maintainable code. There has been a lot of work done on pushing a Modern Perl in the last couple of years and I'd like to come back to this and discuss further. For now, Jacinta's talk advertised some modern Perl I was unfamiliar with (as well as some I am).

This is a rough list of particular interest - those in bold I know or use. The rest is new :

state declaration (static var)
given
~~ smart match
Smart::Comments
perlbrew
local::lib
cpanm
module-starter
test::most
use 5.10.1
perltidy
perlcritic --harsh code.pl
Scalar::Util, List::Util etc. - built in
ORM not SQL
use Method::Signatures
Path::Class
\A - match abs. start of string e.g. /\Amatch/
\Z - match abs. end .. /match\Z/
Change delim i.e. m{//}
use qr{} e.g. $lhs = qr{(\w+);(\w+)} --> ? - where we might then use $1
Regex::Common

© Alastair Sherringham 2023
Powered by Blosxom.
Still going after all these years.