in reply to Help with strict
If you use the hash %masters, you don't need the exists. Either $master{$nick} has the value 1, which is true, or else it is undefined, which is false. This also has the benefit of no longer having a routine referencee a global variable.
If you aren't quite ready to delete the is_master subroutine, quite yet, modify the beginning of subroutine to:
my $who = $_[0]; my $grant = 0; print "Nick is '$who'\n"; print "Called from ", join( ", ", caller()), ,"\n\n";
That should simplify debugging.
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help with strict
by hardburn (Abbot) on Oct 28, 2003 at 19:51 UTC | |
by chromatic (Archbishop) on Oct 28, 2003 at 20:06 UTC |