![]() |
|
XP is just a number | |
PerlMonks |
Re: Comparing patternby bv (Friar) |
on Sep 18, 2009 at 14:44 UTC ( #796130=note: print w/replies, xml ) | Need Help?? |
Look at study, especially if you have a lot of patterns you are matching against. Also, use the 3-argument form of open whenever possible (though that won't speed up your program any.) If you plan to extend this to multiple files, you should precompile your regexps with qr//. Also, take a look at setting local $/ for file slurping, which will be faster than reading lines and joining.
print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))
In Section
Seekers of Perl Wisdom
|
|