@sub{@_} = ("(",")"); my $LRS=join'|',map quotemeta,@_; {local $^W=0;s/($LRS.|.)/$sub{$1}/gs; eval{m/$_/}
In reply to Re: Re (tilly) 2 (fails): Determining if you have balanced delimiters
by I0
in thread Determining if you have balanced delimiters
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |