in reply to modules as data files
####### Inside "test0.pm" ############################### return $data = { k0 => 'apple' , k1 => 'orange', }; ###### Inside the main program: ############################### use strict; use warnings; my $pmfile = shift @ARGV; my $pm = do "$pmfile" or die
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: modules as data files
by Anonymous Monk on Oct 10, 2005 at 19:02 UTC |