Ah, looks like you've stumbled into a perl parsing trap:
s||$1[/|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
In reply to Re^5: Eugh, regex :(
by haoess
in thread Eugh, regex :(
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |