Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my ($string, $salt) = @_; $crc = 0xFFFFFFFF; if (defined $salt) { if (isString $salt) { $string = $salt.$string; } elsif (isNumber $salt) { $crc = $salt; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Checking for data types
by samtregar (Abbot) on Sep 29, 2005 at 15:11 UTC | |
Re: Checking for data types
by gryphon (Abbot) on Sep 29, 2005 at 15:10 UTC | |
Re: Checking for data types
by jZed (Prior) on Sep 29, 2005 at 15:40 UTC |