in reply to Re: it takes 1-2 seconds to return a string from a subrountine
in thread it takes 1-2 seconds to return a string from a subrountine
use Storable( retrieve, store) my $string = getString($ARGV[]); ENDING MY TIMER sub getString{ my ($file1, $file2) = @_; my @thisarray = @{retrieve($file1)}; # size ~ 20M my %thishash = %{retrieve($file2)}; # size ~ 5M my $thisString; # here I am doing something # to create a $thisString and its size is less than 100K STARTING MY TIMER return $thisString; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: it takes 1-2 seconds to return a string from a subrountine
by runrig (Abbot) on Aug 14, 2002 at 18:03 UTC |