in reply to Re: die in regexp
in thread die in regexp
You see, it's too complex to replace current single-line s/// just to be able to croak() on errors. :(while (1) { $tmpl =~ /\G(...)/gcs && do { if ($1 eq "w") { croak "w is bad"; } else { $result .= process_template($1); } } || $tmpl =~ /\G(...)/gcs && do { ...do.something.else... } || last; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: die in regexp
by Hue-Bond (Priest) on Jul 03, 2006 at 20:05 UTC | |
by powerman (Friar) on Jul 03, 2006 at 20:39 UTC | |
by graff (Chancellor) on Jul 03, 2006 at 21:51 UTC |