sub is_int { my $warned = 0; local $SIG{__WARN__} = sub { $warned++ }; local $^W = 1; $_[0] == int $_[0] and not $warned; }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Integer detection concept
by merlyn
in thread Integer detection concept
by boo_radley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |