Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: regex match with interpolated pattern

by Zed_Lopez (Chaplain)
on Aug 18, 2004 at 16:27 UTC ( #384036=note: print w/replies, xml ) Need Help??


in reply to Re^2: regex match with interpolated pattern
in thread regex match with interpolated pattern

Uncomment your print ("$dm $dmm");. You'll see that you actually have the literal strings '&date_manip' and '&date_manip1(1)' in them. That's why they're not matching something that looks like a date.

Just use:

$dm = date_manip(); $dmm = date_manip1(1);

And you'll be a lot closer.

You also may wish to check out Date::Calc and Date::Manip and choose one for your date routines.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-01-29 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?