Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: regex match with interpolated pattern

by Roy Johnson (Monsignor)
on Aug 18, 2004 at 16:21 UTC ( #384034=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $dm='08/14/04';
    $_='There is an 08/14/04 in here';
    if ($_ =~ m/$dm/) {
      print "Matched on <$_>\n";
    }
    
  2. or download this
    #!perl
    sub date_manip {
    ...
      9840S    ebexpire, ebexpire     12/30/69    08/18/04
      9840S    ebexpire, ebeXpire     12/30/69    08/18/04
      9840S    ebexpire, ebexpire     XX/30/69    08/18/04
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2023-01-30 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?