Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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.

--Chris

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


Comment on Re: Testing for valid package names
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.

      --Chris

      #!/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:
      CPAN-Index-API.

      --Chris

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2015-07-07 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls