the input looks like<man> ::= <blah> <man> ::= <blah2>
Ah, in that case you'll want to go with either davido's solution or pg's (whichever one you understand better). I wasn't sure from your original post whether that was the case.
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
In reply to Re: Re: Re: Hash of Arrays
by jonadab
in thread Hash of Arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |