Simply remove { %TABLE = (); } from line 17. $parser->file(...) will reuse entries already encountered in past calls to $parser->file(...).
If you want to option to clear the table, add the following rule to the grammar:
clear_table: { %TABLE = (); }
and do
$parser->clear_table('')
to clear it.
$parser->clear_table()
may also work, but may cause warnings under use strict.
(Untested, since the program in the linked article doesn't run on my system. I guess my dumper gives something different than his.)
In reply to Re: Safe undumping
by ikegami
in thread Safe undumping
by pip9ball
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |