Great! Two quick tips:
if scalar(@$v)>=1;
can be written as
if @$v;
If you could please avoid <pre>...</pre> on PerlMonks. <c>...</c> is preferred. It also saves you from encoding "&", "<" and ">"
In reply to Re^3: Bug with nested named capture buffers
by ikegami
in thread Bug with nested named capture buffers
by matthewshark
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |