Review: Programming Perl (4th ed) by Tom Christiansen, brian d foy, Larry Wall, Jon Orwant (O’Reilly Media) August 10, 2012Posted by claudio in Uncategorized.
Tags: book review, IT, o'reilly, Perl, Programming, Programming Perl
add a comment
If you already program in Perl you know that “Programming Perl” is the de facto reference of the language. I haven’t met Perl Mongers citing randomly from it, but we are not that far from it . If you’re new to Perl, well now you know what you will be reading soon.
This brings us to the targeted public of this book and that’s a tricky question. In my opinion, if you’re new to Perl –or new to programming– you are better served by “Learning Perl” (or a similar book). On the other hand, if you are an experienced programmer you’ll learn Perl from “Programming Perl” with a deep understanding of the language as a bonus. But 1184 pages may be a little too much to get your feet wet.
Don’t return the book to Amazon yet if you take the tutorial-road: your copy will serve you well for years to come as reference for the less obvious aspects of the language (and let’s be honest, there are several). So, this book is not a tutorial book. It’s neither, unlike what I just wrote, a pure reference book. The book is very well written, with just enough humour (also: as not “too much”) to make the 1184 pages digestible to get a deeper insight of the language, something that can not be said of many reference books that are written in a “phone book” style.
The previous versions dates from the year 2000 and covers ancient perls preceding the Perl revival and modernisation we’re enjoying today. Well, if this book is so important for the language –the codification of the language as it were– and well written to be enjoyable, the authors should be lucky to not face trial for the Perl riots while waiting for the update of the book. More seriously, the update was indeed urgently needed and kudos to the authors: writing this kind of book (content and reputation) is hard. It helps that Larry, the creator of Perl, is part of the team. A great read.
“Programming Perl, 4th Edition” by Tom Christiansen, brian d foy, Larry Wall, Jon Orwant
O’Reilly Media, February 2012, 1184 pages
Print ISBN: 978-0-596-00492-7, ISBN 10: 0-596-00492-3
Ebook ISBN: 978-1-4493-9890-3, ISBN 10: 1-4493-9890-1
Programming Perl @amazon.co.uk
Some ideas on method auto-completion in Padre June 9, 2009Posted by claudio in Uncategorized.
Tags: eclipse, epic, komode edit, netbeans, Padre, Perl, Programming
Auto-completion is a nice feature for an IDE. While Padre supports some auto-completion functions, method auto-completion is an important missing feature. This post is a short round-up of features present in other IDEs.
What auto-completion features does Padre support today?
Beside automatic bracket completion, Padre has a nice auto-completion implementation for variables (first character -including sigil- then ctrl + p):
Eclipse + Epic
As a reference, the java auto-completion in Eclipse:
Komodo Edit also has auto-completion for methods, but does not show those inherited from parent classes making the feature rather useless for OO development.
Netbeans has no Perl support, nevertheless the java auto-completion feature is a good example:
The method auto-completion feature is activated by the “.” (“->” in Perl). Not only you get a list of accessible methods (with expected parameter type and return value), but also the javadoc documentation for the selected method.
How should Padre support method auto-completion? Some ideas
- Method autocomplete should be activated by “->” and “::”. This way class hierarchies can be autocompleted as well. With “::” support for functions can be added.
- Private methods should be hidden. By convention, private methods start with “_”.
- Linking method autocomplete to perldoc is a winner combination when programming to not yet familiar APIs and certainly friendly to new Perl developers. While Perl is not strictly typed, a well formatted perldoc entry for a method should make clear what kind of parameters are expected and what the return value could be. However, documentation is rather freely formatted, so it would be difficult to implement in a generic way (without adding formatting restriction to classes).
High-Order Perl now legally available online December 10, 2008Posted by claudio in Uncategorized.
Tags: "High Order Perl", ebook, Perl, Programming
add a comment
Of course, if you find the book useful and/or interesting you should buy it. You will not only acknowledge Mark’s work, but you will keep the Perl book micro-cosmos alive. Books that help you learn and widen your knowledge are a must for a language to flourish (not only for languages, by the way).
Having the real thing before buying gives you the power as a programmer to decide if it’s worth your money (no one can buy 1000 books). This beats reading reviews, table of contents or even a quick look in the bookstore.
Thanks for the trust, Mark.
Use external functions/modules in korn shell (ksh) August 7, 2007Posted by claudio in Uncategorized.
Tags: functions, ksh, modules, Programming, script, Shell, UNIX
1 comment so far
The korn shell is a great shell to write shell scripts. Some functionalities are really nice. By example, you can write your functions or modules in a separate file and use it within your program. The secret lies in the FPATH environment variable. (more…)