SPUG: do vs. eval with Data::Dumper

John Labovitz johnl at meer.net
Wed Jan 26 12:10:33 CST 2000


i myself wrote:

>     my $code = Data::Dumper([$data]);
>     my $result = do $code;

of course, i meant `do 'file'' in my examples, not `do $code'.  i
was only typing, not programming. ;)

john

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address





More information about the spug-list mailing list