wertert has asked for the wisdom of the Perl Monks concerning the following question:
From the Storable.pl docs.....'You can't store GLOB, CODE, FORMLINE, etc... If you can define semantics for those operations, feel free to enhance Storable so that it can deal with them.' Its that last bit that's caught my interest. I looks like I can define semantics so that Storable can cope. Does anyone know what this means ? Can any one point me to an example of a modification like this. Thanks in advance jeffi.e @database=( { "group" =>"1", "pattern" =>'lizard', "function" =>sub { print "hello\n"; }, }, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: storable.pm+CODE refs
by chromatic (Archbishop) on Mar 27, 2001 at 23:00 UTC | |
|
(tye)Re: storable.pm+CODE refs
by tye (Sage) on Mar 27, 2001 at 22:57 UTC | |
|
Re: storable.pm+CODE refs
by darobin (Monk) on Mar 28, 2001 at 00:22 UTC | |
by tye (Sage) on Mar 28, 2001 at 02:33 UTC | |
by darobin (Monk) on Mar 28, 2001 at 02:42 UTC | |
|
Re: storable.pm+CODE refs
by clintp (Curate) on Mar 28, 2001 at 03:53 UTC |