RE: Idea

2002-05-22 Thread Brent Dax
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 use

Re: Idea

2002-05-22 Thread Luke Palmer
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 discu

Re: Idea

2002-05-22 Thread David Wheeler
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 I completely agree with this sentiment. In the meantime, if you don't want to worry about the regexes, check out my D

Re: Idea

2002-05-22 Thread Michael G Schwern
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

Idea

2002-05-22 Thread Chris Angell
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 oth