in reply to Re^2: map a list
in thread map a list

Depending on what the larger problem is, you may be better looking at something like Parse::RecDescent. Even if you stick to manual parsing, using a more explicit coding structure as shown in dragonchild's example would pay off in terms of maintenance.


DWIM is Perl's answer to Gödel