Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: speed up split?
by Roy Johnson (Monsignor) on Mar 22, 2005 at 16:42 UTC | |
by Anonymous Monk on Mar 22, 2005 at 17:10 UTC | |
by Roy Johnson (Monsignor) on Mar 22, 2005 at 17:27 UTC | |
by dragonchild (Archbishop) on Mar 22, 2005 at 18:20 UTC | |
|
Re: speed up split?
by brian_d_foy (Abbot) on Mar 22, 2005 at 16:52 UTC |