Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^5: Eugh, regex :(

by haoess (Curate)
on Mar 25, 2009 at 09:58 UTC ( #753081=note: print w/ replies, xml ) Need Help??

in reply to Re^4: Eugh, regex :(
in thread Eugh, regex :(

Ah, looks like you've stumbled into a perl parsing trap:


This code tries to interpolate the @1 array, the index starts with a slash, parsed as the begin of a matching pattern, but missing the closing slash, that's why you get the Search pattern not terminated error. Escaping the [ with a backslash should make all things fine.

-- Frank

Comment on Re^5: Eugh, regex :(
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-11-27 23:08 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (734 votes), past polls