Download E-books Professional Perl Programming PDF

By Shelley Powers, Simon Cozens, Peter Wainwright, Aldo Calpini, Arthur Corliss, Juan Julian Merelo Guervos, Chris Nandor, Aalhad S

Perl is among the most vital scripting languages in use this day. Open resource, freely to be had, transportable, flexible, and powerful, robust and simple to take advantage of, Perl is the 1st selection for millions net builders. yet Perl is way greater than a scripting language for the internet. Supported via a entire usual library and thousands of third-party libraries, Perl is an more and more renowned selection for software programming.
This ebook presents accomplished insurance of the Perl language. It covers the basics of information varieties and dossier dealing with via complicated gains like ordinary expressions, object-oriented programming, threads, internationalization, and integrating Perl with the c program languageperiod. the newest model of the language, Perl 5.6, is used all through, with remark for people with previous types.

Show description

Read or Download Professional Perl Programming PDF

Best Programming books

Working Effectively with Legacy Code

Get extra from your legacy platforms: extra functionality, performance, reliability, and manageability Is your code effortless to alter? are you able to get approximately prompt suggestions if you happen to do swap it? Do you already know it? If the reply to any of those questions isn't any, you will have legacy code, and it really is draining time and cash clear of your improvement efforts.

Clean Code: A Handbook of Agile Software Craftsmanship

Even undesirable code can functionality. but when code isn’t fresh, it could actually convey a improvement association to its knees. each year, numerous hours and critical assets are misplaced due to poorly written code. however it doesn’t must be that means. famous software program specialist Robert C. Martin provides a innovative paradigm with fresh Code: A instruction manual of Agile software program Craftsmanship .

Implementation Patterns

“Kent is a grasp at growing code that communicates good, is simple to appreciate, and is a excitement to learn. each bankruptcy of this e-book comprises first-class motives and insights into the smaller yet very important judgements we constantly need to make while growing caliber code and periods. ” –Erich Gamma, IBM distinctive Engineer   “Many groups have a grasp developer who makes a speedy move of excellent judgements all day lengthy.

Agile Testing: A Practical Guide for Testers and Agile Teams

Te>Two of the industry’s so much skilled agile checking out practitioners and specialists, Lisa Crispin and Janet Gregory, have teamed as much as convey you the definitive solutions to those questions and so forth. In Agile trying out, Crispin and Gregory outline agile checking out and illustrate the tester’s function with examples from actual agile groups.

Additional info for Professional Perl Programming

Show sample text content

Perl treats glob assignments intelligently, and merely overwrites the a part of the glob that corresponds to the reference being assigned to it, a estate exact between Perl's info varieties. the subsequent assertion fills the array reference slot, yet leaves the scalar reference slot on my own: *glob = \@array; by way of filling within the array slot we create a variable known as @glob which issues to an analogous values because the unique @array; altering both variable will reason the opposite to work out a similar alterations. an analogous applies to our previous $glob variable. altering the worth of $glob additionally adjustments the price of $scalar, and vice versa. this is often referred to as variable aliasing, and we will use it to nice impact in numerous methods on variables, subroutines, and filehandles. The upshot of this is often that we infrequently have to entry a typeglob's slots without delay, given that we will easily entry the proper variable (the exception is naturally filehandles, which don't have their very own syntax for direct access), yet we will play a few fascinating methods by means of assigning to typeglobs. Manipulating Typeglobs now we have already visible how we will create aliases for scalars and arrays (the similar applies to hashes too, of course): *glob = \$scalar; # create $glob as alias for $scalar *glob = \@array; # create @glob as alias for @array *glob = \%hash; # create %glob as alias for %hash If we assign the typeglob to a brand new identify, we reproduction all 3 references. for instance, the next assertion invents the variables $glob2, @glob2, and %glob2, all of which aspect to a similar underlying values because the originals: *glob2 = *glob; thus far now we have thought of simply the 3 commonplace variable varieties, yet typeglobs additionally include a code reference slot, that's how Perl defines subroutine names. A roundabout strategy to outline a named subroutine is to assign a code connection with a typeglob: *subglob = sub {return "An nameless subroutine? "}; Or: *subglob = \&mysubroutine; 162 Beyond Scalars - extra info varieties either one of those assignments reason a subroutine known as subglob to spring into lifestyles. the 1st demonstrates that the one distinction among a named and an nameless subroutine (see bankruptcy 7 for extra on subroutines) is a typeglob access. the second one creates an alias for the subroutine mysubroutine, in an effort to now name mysubroutine or subglob with equivalent impression: # those statements are exact print mysubroutine(@args); print subglob(@args); either typeglobs include an analogous code reference, so the 2 names are easily other ways to consult a similar factor. gaining access to Typeglobs If we wish to entry the various components of a typeglob we will be able to accomplish that via casting it into the proper shape. for instance: # assign a brand new key to %glob ${*glob}{'key'} = $value; an analogous method works for ${*glob}, @{*glob}, and &{*glob}, which entry the scalar, array, and subroutine components of the typeglob respectively. in spite of the fact that, we can't do a similar for filehandles or studies, for the reason that they don't have a prefix. AM FL Y a contemporary addition to Perl is the facility to entry different components of a typeglob at once.

Rated 4.47 of 5 – based on 3 votes