But this takes a long time. I asume because of many copies of the slowly growing array.sub splt { my $s = shift; $s =~ s/\x0A|\x0D//gs; # make one line return (split /<td|<tr|<li/gsi, $s); # return array }
2005-03-22 Janitored by Arunbear - replaced pre tags with code tags, to allow code extraction
In reply to speed up split? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |