http://www.perlmonks.org?node_id=80157


in reply to Regex Misuse

The goal was to extract $width amount of characters from a variable. More experienced programmers are shaking their heads right now, they know it would be much more efficient to use this: substr($someVar,$offSet,$width)

And unpack would be even better yet.

____________________
Jeremy
I didn't believe in evil until I dated it.