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

Re^3: regex match with interpolated pattern

by Roy Johnson (Monsignor)
on Aug 18, 2004 at 16:21 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found