"unpack" is not even mentioned in my "Learn Perl in 24 hours"
Wow, not mentioned at all? Sheesh, I knew the 24-hours series wasn't great, but wow. Granted, unpack is not one of the most commonly-used functions, and I wouldn't expect a whole chapter on it or anything, but there should be at least a short discription of it. It is, after all, a builtin.
With that said, I'd have used substr rather than unpack for this, personally. *Surely* the book at least has a discussion of substr.
Until you get around to buying a new book, you can get by with perldoc It's not quite the same as having a book in your hands, but it's useful for reference.
If you're looking for a good Perl book, there are some quite excellent ones available. Generally you will not go far wrong with O'Reilly books, for instance. The one with the camel on the cover is great if you have a background in programming in other languages and just need to learn the things that are unique to Perl. If you have little prior programming experience, you might be better off with the llama book. I also quite liked <cite>Effective Perl Programming</cite>, but that one assumes you already know a bit of Perl, so it might not be a good starting point. There are, of course, other good choices as well.
In reply to Re: Regex selection based upon position
by jonadab
in thread Regex selection based upon position
by JeanLaspost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |