InfiniteSilence has asked for the wisdom of the Perl Monks concerning the following question:
>perl -e "$ab=q({eval { return 1*100 } } iiilll { eval {return 'mark'}}); $ab=~s/\{\s*eval([^\}]+)\}\s*\}/qq($1})/eeg; p +rint $ab; if ($@) {print qq(\nERROR\n$@)};"
Celebrate Intellectual Diversity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cleaner Regex
by jryan (Vicar) on Dec 10, 2003 at 00:08 UTC | |
|
Re: Cleaner Regex
by diotalevi (Canon) on Dec 09, 2003 at 21:02 UTC | |
|
Re: Cleaner Regex
by hardburn (Abbot) on Dec 09, 2003 at 20:56 UTC |