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

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.

Replies are listed 'Best First'.
Re: Issue with regex matching
by toolic (Bishop) on Aug 30, 2013 at 13:15 UTC
    $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 (Chancellor) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1051625]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2018-04-25 15:33 GMT
Find Nodes?
    Voting Booth?