this is working... but i don't know how.. constructor how works ???my %data; my $myObj = new test::mod1(); %data = $myObj->prepare(%data); ------------------------- package test::mod1; sub new { my ($class_name, $dql) = @_; my $internalData = {dql => $dql}; bless($internalData, $class_name); return $internalData; } sub prepare { my ($internalData, %record) = @_; return %record; }
In reply to Re^2: Pass a hash array to module
by lingaraj
in thread Pass a hash array to module
by lingaraj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |