Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Using a regex as a hash key

by jivanm (Initiate)
on Jun 06, 2007 at 16:15 UTC ( [id://619623]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Can't use string ("") as a subroutine ref while "strict refs"
    
  2. or download this
    my $var1;
    my $var2;
    ...
         ($regex => \&get_device);
    
    my $result = $functions{$var1}->($var2);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found