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

Re^2: Testing for the presence of a hash key in a filename

by citromatik (Curate)
on May 25, 2007 at 15:08 UTC ( [id://617512]=note: print w/replies, xml ) Need Help??


in reply to Re: Testing for the presence of a hash key in a filename
in thread Testing for the presence of a hash key in a filename

use Tie::RegexpHash; ## &do_dni and &do_sni ... as before my %dispatch; tie %dispatch, 'Tie::RegexpHash'; %dispatch = ( qr/DNI/ => \&do_dni, qr/SNI/ => \&do_sni, # etc. ); foreach my $fn ( @filenames ) { $dispatch{$fn}->{$fn} }

citromatik

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-16 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found