Archive for February, 2008

Simple postcode validation

Friday, February 22nd, 2008

Nice function:

http://snipplr.com/view/3152/postcode-validation/

Use of uninitialized value in string eq at

Tuesday, February 19th, 2008

I personally find that particular warning extremely annoying, because you
often have to jump through a number of unnecessary hoops to avoid it.
Fortunately, with recent versions of Perl you can selectively disable this
warning with:
   no warnings ‘uninitialized’;
You might want to use the defined() function instead. That will get rid of
the warning.
   if (!defined($atmnb1)) { $atmnb1=$atmnb[0];}
Which is written more idiomatically as:
   $atmnbl = $atmnb[0] unless defined $atmnbl;

Alter access to server.

Tuesday, February 12th, 2008

vi /etc/passwd