Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Using a scalar as a constant?

by gone2015 (Deacon)
on Oct 15, 2008 at 15:42 UTC ( #717250=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub map_constant_name {
      my ($name) = @_ ;
    ...
    
      return $@ ? undef : $val ;
    } ;
    
  2. or download this
    my %constant_map = map { ($_, map_constant_name($_)) } qw(....) ;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2023-01-31 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?