in reply to Problems evaluating a user supplied regex using eval
This variable is read-only and dynamically scoped to the current BLOCK
oreval ($re=qr/foobar/) || warn $@;
if (eval ($re=qr/quuzy/)) { # manipulate } else { #blargh! bad re }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problems evaluating a user supplied regex using eval (boo)
by Popcorn Dave (Abbot) on Apr 24, 2002 at 18:50 UTC |