Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Using a scalar as a constant?

by gone2015 (Deacon)
on Oct 15, 2008 at 15:42 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-20 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found