On Feb 21, Daniel Falkenberg said:

>Sorry to keep approaching you with my regex problems, but I really
>havn't had time to read up on them yet.
>
>Is it possible to get a regex to say ... "hang on I only want numerals
>in my variable.  I am now going to print an error :)"

You're not the only one who has asked this.

  perldoc -q integer

  =head2 How do I determine whether a scalar is a number/whole/integer/float?

  Assuming that you don't care about IEEE notations like "NaN" or
  "Infinity", you probably just want to use a regular expression.

  [examples]

Check it out.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to