in reply to Re^2: Regex selection based upon position
in thread Regex selection based upon position

"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.

  • Comment on Re: Regex selection based upon position

Replies are listed 'Best First'.
Re^2: Regex selection based upon position
by Perl Mouse (Chaplain) on Nov 15, 2005 at 12:38 UTC
    I'd say that any book aimed at learning a subset of Perl to get you started that discusses all buildins is a failure. It's also easy - it's easy to write a book that discusses all buildins. It's much harder to determine a good subset of the buildins.

    I can certainly understand if pack and unpack are left out. A lot of programs don't need it, and they are complicated functions, with their own little language-in-a-language.

    I used to give Perl courses, and I usually left pack and unpack out. I would only discuss it if I thought the audience could grok it. (UNIX sysadmins with C experience for instance. But I'd leave it out for web weenies fresh out of school - getting them to use an editor was often already complicated enough).

    Perl --((8:>*