Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?

by thanos1983 (Parson)
on Jul 12, 2015 at 13:46 UTC ( [id://1134376]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
in thread [SOLVED] How do I determine with a regular expression whether a scalar is a number/whole/integer/float?

Hello CountZero,

I was trying to avoid using modules, but maybe at the end I will. Thanks for pointing out some more options.

Seeking for Perl wisdom...on the process of learning...not there...yet!
  • Comment on Re^2: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
by CountZero (Bishop) on Jul 12, 2015 at 19:36 UTC
    Why would you try to avoid using modules? It is one of the major strengths of Perl, envied by many other languages.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

      Hello again CountZero,

      You are absolutely right about that. The only reason that I am trying to avoid using modules, is because I am building my own module. And I am trying to force the user to install as less as possible modules in order to use it. I am trying to use the pre installed modules of Perl.

      But other than that reason I agree with you 100%.

      Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1134376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found