professional perl programming wrox 2001 phần 2 pptx

professional perl programming wrox 2001 phần 2 pptx

professional perl programming wrox 2001 phần 2 pptx

... array @date = (localtime)[5, 4, 3, 2, 1, 0]; # Y, M, D, h, m, s $date[0]+=1900; # fix year # generate time string using sprintf $date = sprintf "%4d/%02d/%02d %2d:%02d:%02d", @date; This example ... !$value2; # adds result of !$value1 to !$value2 !($value1 + !$value2); # negates result of $value1 + !$value2 Conversely, the not, and, or, and xor operators have the lowest precedence...

Ngày tải lên: 12/08/2014, 23:23

120 193 0
professional perl programming wrox 2001 phần 7 pptx

professional perl programming wrox 2001 phần 7 pptx

... $serial = new Serial (20 01) ; print $serial->serial, "\n"; The output from this version of the script is (as a little arithmetic would lead us to expect): 70 20 01 This class method ... categorized summary of Perl& apos;s functions, exported as a hash. Pod::Html The basis for the pod2html utility. Pod::Man The basis for both the pod2man and the functionally identical pod2ro...

Ngày tải lên: 12/08/2014, 23:23

120 225 0
professional perl programming wrox 2001 phần 1 ppt

professional perl programming wrox 2001 phần 1 ppt

... 21 9 Predeclaring Subroutines 21 9 Overriding Built-in Functions 22 0 The Subroutine Stack 22 1 Recursion 22 3 Checking for Subroutines and Defining Subroutines On the Fly 22 6 Passing Parameters 22 8 Passing ... 621 Adding Calling Context to Debug Messages 621 The Perl Debugger 622 Starting the Debugger 622 Entering Commands 623 Simple Debugging Commands – Single Stepping 624...

Ngày tải lên: 12/08/2014, 23:23

120 308 0
professional perl programming wrox 2001 phần 3 pps

professional perl programming wrox 2001 phần 3 pps

... to calculate the last term first: #!/usr/bin /perl # fib2.pl use warnings; use strict; sub fibonacci2 { my ($count, $internal) = @_; if ($count <= 2) { # we know the answer already return $internal?[1,1]: ... http://www.simpopdf.com Subroutines 22 5 Both approaches suffer from the problem that Perl generates a potentially large call stack. If we try to calculate a sufficiently large s...

Ngày tải lên: 12/08/2014, 23:23

120 218 0
professional perl programming wrox 2001 phần 4 potx

professional perl programming wrox 2001 phần 4 potx

... ($text =~ /^(([^:]+):?)(([^:]+):?)(([^:]+):?)/) { print " \ $2 = $2 \n \$4 = $4 \n \$6 = $6 \n"; } > perl overwrite2.pl $2 = one $4 = two $6 = three Although this works, it is neither ... \ $2 = $2 \n"; } > perl overwrite3.pl $1 = one: $2 = one $1 = two: $2 = two $1 = three: $2 = three $1 = four: $2 = four $1 = five $2 = five An alternative, and someti...

Ngày tải lên: 12/08/2014, 23:23

120 206 0
professional perl programming wrox 2001 phần 5 pot

professional perl programming wrox 2001 phần 5 pot

... Filehandles 457 # read 20 chrs into $result my $chrs = sysread HANDLE, $result, 20 ; if ($chrs == 20 ) { # got all 20 , try to read another 30 chrs into $result after the first 20 $chrs += sysread ... has a structure like this: fred:RGdmsaynFgP56:301 :20 0:Fred A:/home/fred:/bin/bash jim:Edkl1y7NMtO/M:3 02: 200:Jim B:/home/jim:/bin/ksh mysql:!!: 120 : 120 :MySQL server:/var/lib/mysql:/b...

Ngày tải lên: 12/08/2014, 23:23

120 220 0
professional perl programming wrox 2001 phần 6 potx

professional perl programming wrox 2001 phần 6 potx

... find. Here is a short example of using the Win 32: :EventLog module: #! /perl/ bin /perl # win 32. pl use Win 32: :EventLog; use strict; my $e = new Win 32: :EventLog($0); my %hash = (Computer => $ENV{COMPUTERNAME}, EventType ... time we press a key: #!/usr/bin /perl # curses2.pl use warnings; use strict; use Curses; # create a 3x20 window with top corner at 0, 0 my $window = new Curses(...

Ngày tải lên: 12/08/2014, 23:23

120 266 0
professional perl programming wrox 2001 phần 8 ppsx

professional perl programming wrox 2001 phần 8 ppsx

... http://www.simpopdf.com Inside Perl 817 lib /usr/local/lib /perl5 /5.7.0/i686–linux /usr/local/lib /perl5 /5.7.0 /usr/local/lib /perl5 /site _perl/ 5.7.0/i686–linux /usr/local/lib /perl5 /site _perl/ 5.7.0 /usr/local/lib /perl5 /site _perl How ... Version - http://www.simpopdf.com Inside Perl 839 Package (lexical) $level i17, 20 , 25 , 25 Package main &debug_level & ;20 , &...

Ngày tải lên: 12/08/2014, 23:23

120 251 0
professional perl programming wrox 2001 phần 9 potx

professional perl programming wrox 2001 phần 9 potx

... delivery: 1 92. 168.1.7 1 92. 168 .2. 4 1 92. 168.1.10 1 92. 168 .2. 101 3C:89:00:10:FA:0B 3C:E9:34:01:0A:AC 5A:03 :26 :DE: 02: A1 5A:03:A3:56: 02: 01 1 92. 168.1.1 2B:00:3E:46 :20 :01 2B:00:3E:56:F2:FA 1 92. 168 .2. 1 TEAMFLY ... (and homes, if need be): Class Private IP block A 10.0.0.0 - 10 .25 5 .25 5 .25 5 B 1 72. 16.0.0 - 1 72. 31 .25 5 .25 5 C 1 92. 168.0.0 - 1 92. 168 .25 5 .25 5 Bec...

Ngày tải lên: 12/08/2014, 23:23

120 357 0
professional perl programming wrox 2001 phần 10 doc

professional perl programming wrox 2001 phần 10 doc

... dic 20 00 14:57:59 CET Andalia 4567987.00 ESP 23 995 .27 USD $ Ántico 1000000.00 ESP 525 2. 92 USD $ Cántaliping 46168.50 ESP 24 2. 52 USD $ Cantamornings 6669876.00 ESP 35036.33 USD $ Chilindrina 20 00.35 ... 530 920 .67 USD $ Cantamornings 6669876.00 ESP 76701106.15 USD $ Chilindrina 20 00.35 ESP 23 003 .28 USD $ Cflab.org 123 456.70 ESP 1419706.37 USD $ Zinzun.com 33445.00 ESP 3846...

Ngày tải lên: 12/08/2014, 23:23

120 212 0
w