in reply to uninitialized value in phonebook program
use strict; my $name = 'school&0'; my ($first,$last) = $name =~ /(.+)&(.+)/; print "$first:$last\n"; print "== is true\n" if $last == 0; print "eq is true\n" if $last eq '0'; print "=~ is true\n" if $last =~ /^0$/;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (jeffa) Re: uninitialized value in phonebook program
by smgfc (Monk) on Feb 25, 2002 at 04:58 UTC |