Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 lurking in the Monastery: (8)
As of 2015-05-30 23:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (601 votes), past polls