Advanced Perl Programming by Sriram Srinivasan

By Sriram Srinivasan

No matter if your wisdom of Perl is informal or deep, this ebook will make you a extra finished programmer. It covers advanced strategies for handling production-ready Perl courses and explains equipment for manipulating information and gadgets that can have gave the impression of magic prior to. in addition, it units Perl within the context of a bigger atmosphere, giving you the historical past you wish for facing networks, databases, and GUIs. it is also a dialogue of internals that will help you application extra successfully and embed Perl inside C or C inside Perl. significant themes comprise the sensible use of programs and sessions (object-oriented programming), advanced information buildings, endurance (e.g., utilizing a database), networking, graphical interfaces utilizing the Tk toolkit, interplay with interval capabilities, embedding and increasing the Perl interpreter, and chosen internals.

Show description

Read or Download Advanced Perl Programming PDF

Similar javascript books

Understanding Ajax Using Javascript To Create Rich Internet Applications

AJAX is sizzling, scorching, scorching! Why? it truly is uncomplicated. With AJAX, web builders and architects can create web-based purposes that appear and feel like computer purposes. those are responsive, highly-interactive purposes that signify a brand new breed known as "Rich web purposes" (RIA). This e-book is a advisor to designing, enforcing, and debugging AJAX purposes.

Plug-In CSS 100 Power Solutions

A hundred CSS strength ideas in a single convenient advisor This functional source includes a hundred ready-to-run CSS plug-ins you should use to create dynamic websites. all the plug-ins comprise HTML examples and reveal pictures displaying particular finish effects you could in achieving immediately. equipment for utilizing CSS with JavaScript and HTML5 to make websites much more interactive and dynamic also are incorporated.

Instant Node.js Starter

Software your scalable community functions and internet providers with Node. js with this publication and book evaluation study whatever new directly! a quick, quick, targeted consultant offering quick effects how one can use module styles and Node Packet supervisor (NPM) on your purposes realize callback styles in NodeJS comprehend the use Node.

jQuery 2 Recipes A Problem-Solution Approach

JQuery is usually often called the write much less, do extra javascript library. It permits a number of transparent traces of chic, well-tested, code to interchange many pages of complicated hand-coded script, rushing improvement occasions and delivering monstrous rate reductions. you will discover jQuery 2 Recipes problem-solution method of be a good price and a feature-packed source as you start to incorporate jQuery on your personal initiatives.

Additional info for Advanced Perl Programming

Sample text

Txt") || die "Could not open database: $:"; %category_index = (); %year_index = (); while ($line = ) { chomp $line; ($year, $category, $name) = split (/:/, $line); create_entry($year, $category, $name) if $name; } sub create_entry { # create_entry (year, category, name) my($year, $category, $name) = @_; # Create an anonymous array for each entry $rlEntry = [$year, $category, $name]; # Add this to the two indices push (@{$year_index {$year}}, $rlEntry); # By Year push (@{$category_index{$category}}, $rlEntry); # By Category } Notice that each push statement does a fair bit of work.

My %base_hours = ( mon => 0, tue => 12, wed => 24 , thu => 36, fri => 48 ); sub interval_parse { my ($interval_sequence) = @_; #contains "Mon 3-5, Tue 2-6" my ($time_range) = ""; foreach $day_hours (split /,/, $interval_sequence) { # $day_hours contains "Mon 3-5" etc. *(\d+)-(\d+)/); # if $from or $to is less than 7, it must be afternoon. Normalize # it by adding 12. Then reduce it to a zero base by subtracting 7 # (that is, 7 hrs to 19 hrs becomes 0 - 12. 4. 4: Checking Constraints on a Professor's Time sub prof_check_constraints { my ($prof) = @_; my $r_prof = $profs{$prof}; # %profs created by prof_read_file my $office_hours = $r_prof->{Office Hours}; my $rl_courses = $r_prof->{Courses}; for $i (0 ..

1 Passing Arrays and Hashes to Subroutines When you pass more than one array or hash to a subroutine, Perl merges all of them into the @_ array available within the subroutine. The only way to avoid this merger is to pass references to the input arrays or hashes. Here's an example that adds elements of one array to the corresponding elements of the other: @array1 = (1, 2, 3); @array2 = (4, 5, 6, 7); AddArrays (\@array1, \@array2); # Passing the arrays by reference. 900nce. } sub GetNextLine () { my $line = ; exit(0) unless defined($line); .....

Download PDF sample

Rated 4.67 of 5 – based on 20 votes