my $pixellist = '9347248,9347248,9413041'; my @allpixels = split( /,/ , $pixellist ); my $newblob = reverse pack "(VX)*", reverse @allpixels;
Well, I'm not suggesting that this is faster than the original or that you use it; I just wanted to prove that you can omit the entire for-loop if you make your pack command sufficiently unreadable ;-)
In reply to Re: How to optimize this code
by betterworld
in thread How to optimize this code
by avo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |