Hi forks,
Here is my question:
The string size is around 20-100K.
I timed the process time, and assignment takes around 1-2 seconds. I am surpised at this performance because I expected this operation would take almost nothing under my machine.
Any idea about this?
Thanks in advance!
my $string = getString($ARGV[]);
ENDING MY TIMER
sub getString{
my @thisarray = @_;
my $thisString;
foreach (@thisarray){
$thisString .= $_;
}
STARTING MY TIMER
return $thisString;
}