Simple postcode validation
Friday, February 22nd, 2008Nice function:
Nice function:
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;
vi /etc/passwd