http://www.perlmonks.org?node_id=1051625

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

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 (Archbishop) 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