Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Match 2 strings in same line

by Eily (Curate)
on Nov 25, 2013 at 17:06 UTC ( #1064248=note: print w/ replies, xml ) Need Help??


in reply to Match 2 strings in same line

I don't know what's inside $logsIncDate, but you might want to escape the special characters (like the dot), to be sure to match it exactly. m<\Q$logsIncDate>;. See quotemeta.


Comment on Re: Match 2 strings in same line
Download Code
Replies are listed 'Best First'.
Re^2: Match 2 strings in same line
by hmb104 (Sexton) on Nov 25, 2013 at 17:23 UTC

    my $logsIncDate = `date +"%b %d %H"`;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-07-08 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls