Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Testing for valid package names

by tobyink (Abbot)
on Nov 25, 2013 at 21:56 UTC ( #1064315=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub _is_string($) {
       my($arg) = @_;
    ...
    sub is_module_name($) {
       _is_string($_[0]) && $_[0] =~ /\A$module_name_rx\z/o;
    }
    
  2. or download this
    perl -E'*{" ::foo"} = sub {42}; say " "->foo'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-04-18 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls