in reply to Re^2: 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?

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
  • Comment on Re^3: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?

Replies are listed 'Best First'.
Re^4: 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 20:33 UTC

    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!