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

Re^5: check parameters

by hdb (Monsignor)
on Apr 08, 2013 at 14:41 UTC ( #1027524=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $pattern ="(".join('|', @{$opts->{params}}).")";
    # pattern is now "(a|b)"
    ...
    my @test =  grep { /^$pattern/i } keys %$format;
    # @test = ( "bar", "abc" )
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027524]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2017-12-13 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (345 votes). Check out past polls.

    Notices?