pip9ball has asked for the wisdom of the Perl Monks concerning the following question:
I have a question reqarding Randal's nifty "safe undumping" article found here: http://www.stonehenge.com/merlyn/LinuxMag/col29.html
On line 17, code is inserted to clear out the contents of %TABLE, parse a string, then return a hash reference to the %TABLE.
Is it possible to instead of clear out the contents of %TABLE, append new elements to %TABLE?file: { %TABLE = (); } assignment(s?) /\z/ { \%TABLE }
I have some input data very similar to perl with comments in between. I want to be able to send a single assignment to the parser one at time to build the final %TABLE incrementally.
Thanks and Regards,
-P
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Safe undumping
by ikegami (Patriarch) on Nov 10, 2004 at 21:15 UTC | |
by pip9ball (Acolyte) on Nov 11, 2004 at 01:21 UTC |