Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: One line assigment statement with regex match

by mugwumpjism (Hermit)
on Jul 06, 2005 at 22:07 UTC ( #472950=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @terms=qw(foo bar b.*az);
    my $re = qr{(?:${\(
                     join "|", map { qr{\Q$_\E} } @terms
                  )})};
    print "$re\n";
    
  2. or download this
    $h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/."
    ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-06-06 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (41 votes). Check out past polls.

    Notices?