Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Testing for valid package names

by LanX (Canon)
on Nov 25, 2013 at 21:24 UTC ( #1064303=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Testing for valid package names
in thread Testing for valid package names

IIRC, no (non-special) identifier is allowed to start with a number.

Though I'm sure one can trick to enter them as key value pairs into the stash.

Cheers Rolf

( addicted to the Perl Programming Language)


Comment on Re^3: Testing for valid package names
Replies are listed 'Oldest First'.
Re^4: Testing for valid package names
by boftx (Deacon) on Nov 25, 2013 at 21:36 UTC

    You're right about numbers up front. I should have tried this to begin with:

    [jim@krakatoa perl]$ cat use23Skidoo.pl #!/usr/bin/perl -T use 5.008_008; use strict; use warnings FATAL => 'all'; use 23Skidoo; exit; __END__ [jim@krakatoa perl]$ ./use23Skidoo.pl syntax error at ./use23Skidoo.pl line 8, near "use 23" Execution of ./use23Skidoo.pl aborted due to compilation errors. [jim@krakatoa perl]$
    It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2015-07-07 16:59 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 (92 votes), past polls