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

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

by kyle (Abbot)
on May 25, 2007 at 14:49 UTC ( [id://617504]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub do_dni {
        my ( $filename ) = @_;
    ...
            $sub_ref->($fn) if ( $fn =~ /$pattern/ );
        }
    }
    
  2. or download this
    my @dispatch = ( { pattern => qr/DNI/,
                       coderef => \&do_dni, },
    ...
                if ( $fn =~ $item->{pattern} );
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found