Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
saveing hashes to files (and re-load them) is not too difficult,
even if they are nested,
but what if functions is part of this hash?
Is there a way to save this (an more complicated) code to a file$h{'sub'} = sub { return "Hello World\n" };
Thanks,
Carl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: save to file: $h{'sub'}=sub{..};
by jeffa (Bishop) on Jul 12, 2003 at 19:15 UTC | |
|
Re: save to file: $h{'sub'}=sub{..};
by adrianh (Chancellor) on Jul 12, 2003 at 19:05 UTC | |
by Anonymous Monk on Jul 12, 2003 at 19:10 UTC | |
by Anonymous Monk on Jul 13, 2003 at 11:39 UTC | |
by Anonymous Monk on Jul 13, 2003 at 11:50 UTC | |
by Anonymous Monk on Jul 13, 2003 at 12:03 UTC | |
by adrianh (Chancellor) on Jul 13, 2003 at 16:05 UTC | |
|
Re: save to file: $h{'sub'}=sub{..};
by bsb (Priest) on Jul 13, 2003 at 04:39 UTC |