S
shurikgefter
Hi,
What is a better for performance:
1)
foreach my $key ( split ( ',' , $temp ) )
{
......
}
or
2)
@tmp = split ( ',' , $temp );
foreach my $key ( @tmp )
{
.....
}
Does the split command will be execute each foreach loop or only first
time?
What is a better for performance:
1)
foreach my $key ( split ( ',' , $temp ) )
{
......
}
or
2)
@tmp = split ( ',' , $temp );
foreach my $key ( @tmp )
{
.....
}
Does the split command will be execute each foreach loop or only first
time?