regex error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I cannot understand what i'm doing wrong but my script fails to compile
("panic: end_shift");

$SMContents =~ m/^User data: '(.)'$/ms

The following two alternatives work well

$SMContents =~ m/^User data: '(.)'$/ms

$SMContents =~ m/^User data: '(.)'/ms


Re: regex error

Brendon Caligari wrote:
Quoted text here. Click to load it

There is nothing with any of the expressions above that should cause a
script to not compile. Please post a short but *complete* program that
illustrates the problem.

Gunnar Hjalmarsson

Site Timeline