Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Testing for valid package names

by taint (Chaplain)
on Nov 25, 2013 at 21:20 UTC ( #1064300=note: print w/replies, xml ) Need Help??

in reply to Testing for valid package names

Greetings boftx.

There's already a Module for that. I just saw it a bit ago. Might save you some unnecessary trouble, unless of course you're doing this for the "experience". :)
I'll see if I can find it again, and post back with a link. If you want to try yourself; I seem to remember it being in the CPAN namespace.


#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;

Replies are listed 'Best First'.
Re^2: Testing for valid package names
by boftx (Deacon) on Nov 25, 2013 at 21:27 UTC

    Hi Chris, that wouldn't surprise me at all.

    I'm doing this partly to keep my hand in on some stuff that I don't typically use, as well as try to (re-)invent a better mousetrap with regards to other modules that don't let me do things as easily as I think it might be as possible to do so. More to follow on that once the package is fleshed out more. :)

    It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
      COMPLETELY understood.

      I'm bad that way myself. :)
      While it doesn't look complete, CPAN-Index might provide some helpful bits for your needs (project).

      Good luck, and have fun.


      #!/usr/bin/perl -Tw
      use Perl::Always or die;
      my $perl_version = (5.12.5);
      print $perl_version;
      This might give you a nice index object to run your search against:


      #!/usr/bin/perl -Tw
      use Perl::Always or die;
      my $perl_version = (5.12.5);
      print $perl_version;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1064300]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2018-03-19 06:02 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (232 votes). Check out past polls.