Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 romping around the Monastery: (3)
As of 2016-09-28 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (518 votes). Check out past polls.