Everyone,
Please correct me if I am emailing the wrong address/list. Thanks.
I have an idea for the int() function. I think it would be cool if it
returned false/undefined when the argument passed to it is a whole number.
For example:
int(1) or print argument passed to int() is something
On Wed, May 22, 2002 at 10:14:17AM -0700, Chris Angell wrote:
I have an idea for the int() function. I think it would be cool if it
returned false/undefined when the argument passed to it is a whole number.
For example:
int(1) or print argument passed to int() is something other than a
On 5/22/02 11:18 AM, Michael G Schwern [EMAIL PROTECTED] claimed:
It would be nice to have a way to check if something is an integer better
than the regexes in perlfaq4
snip /
I completely agree with this sentiment. In the meantime, if you don't want
to worry about the regexes, check out my
On Wed, 22 May 2002, Chris Angell wrote:
Everyone,
Please correct me if I am emailing the wrong address/list. Thanks.
Well, in general, you are mailing the wrong list; however, we do know a
lot of perl 5, so you'll get your question answered :) (This is the Perl
6 list, used for
Luke Palmer:
# sub myint($x) { my $i = int $x; $i == $x ? $x : $i }
sub myint($x) { int $x // $x } #assuming it returned undef
--Brent Dax [EMAIL PROTECTED]
@roles=map {Parrot $_} qw(embedding regexen Configure)
blink: Text blinks (alternates between visible and invisible).
Conforming user