Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Reaped: Issue with regex matching

by NodeReaper (Curate)
on Aug 30, 2013 at 13:09 UTC ( #1051625=perlquestion: print w/ replies, xml ) Need Help??
NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on Aug 30, 2013 at 16:00 UTC
Reason: [hdb]: Reap: dupe of Issue with regex matching

You may view the original node and the consideration vote tally.

Comment on Reaped: Issue with regex matching
Replies are listed 'Best First'.
Re: Issue with regex matching
by toolic (Bishop) on Aug 30, 2013 at 13:15 UTC
    quotemeta
    $constant = quotemeta '$$'; $line_count =0; while (<FILE>){ if($constant ne "") { if($_ =~ m/^($constant)/) { $line_count++; } } }

    UPDATE: Geez... you asked this question 2 days ago, and got the answer --

Re: Issue with regex matching
by kcott (Abbot) on Aug 30, 2013 at 13:46 UTC

    G'day sowais,

    That's exactly the same question, title and text, that you posted yesterday: "Issue with regex matching".

    Furthermore, you appear to have updated yesterday's post with:

    "Thank you all for your input! I have my code working using quotemeta."

    Clearly, there's something wrong here; although, I don't know if you've pasted the wrong question from wherever you do your editing, somehow reposted in error, or something else. "How do I change/delete my post?" should be able to help you decide how to fix this.

    -- Ken

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2015-07-31 11:37 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 (276 votes), past polls