in reply to Portable way of checking if a scalar is a number / integer / float

I tried putting the Numeric.pm file by itself first, and then the full Scalar/ directory, and then tried to execute its contents using do. Didn't work.

You didn't include the DLL. These are the files installed by the distro:

You can find these files in the blib dir created during the installation process.


I don't want to require users to install anything

As a module with a compiled component, this would only be possible by providing binaries that are suitably compiled for your users. Keep in mind that modules compiled with one version of Perl are only compatible with that version of Perl. This would a large headache.

  • Comment on Re: Portable way of checking if a scalar is a number / integer / float
  • Download Code