Install and run ActiveStatePERL· Run PERL Package Manager (PPM) toinstall and update standard andadditional packages: Start a command line interface (cmd): Prepare PERL source code (e.g.a.plx)khby>perl a.plx
Install and run ActiveState PERL • Run PERL Package Manager (PPM) to install and update standard and additional packages • Start a command line interface (cmd) • Prepare PERL source code (e.g. a.plx) • Run by > perl a.plx
Install and run DWIMPERLbased on Strawberry PERL Come with Padre, the Perl IDEecohaecartfaatNAMESYNOPSISE
Install and run DWIMPERL based on Strawberry PERL • Come with Padre, the Perl IDE
PERL numbers: Number- 255 (decimal)- 0377 (octal)- Ob1111111 (binary)- OxFF (hexidecimal). Example#!/usr/bin/perl#goodnums.plxuse warnings;print255,"\n";print 0377,"\n";Drintoblllillll,"\n";"\n";print OxFF,goodnums.plx
PERL numbers • Number – 255 (decimal) – 0377 (octal) – 0b1111111 (binary) – 0xFF (hexidecimal) • Example #!/usr/bin/perl #goodnums.plx use warnings; print 255, "\n"; print 0377, "\n"; print 0b11111111, "\n"; print 0xFF, "\n"; goodnums.plx
PERL Strings: single-quoted with no processingprint \t This is a $test In';: double-quoted with interpolationstest = "mid term test";print "\t This is a $test n";. here-documentprint<<EoF;Dear Mary,I am demonstrating the usage of PERL1EOF
PERL Strings • single-quoted with no processing print '\t This is a $test \n'; • double-quoted with interpolation $test = "mid term test"; print "\t This is a $test \n"; • here-document print<<EOF; Dear Mary, I am demonstrating the usage of PERL EOF
PERL operatorsArithmetics★*%+,二,*,/,()Bitwise&r人 Comparison<<>,>=,=<=>gt, ge, eq, lt, le, cmp Boolean&&,II,Repetitionx3, x4
PERL operators • Arithmetics +,-,*,/,( ), **, % • Bitwise &, |, ^, ~ • Comparison ==, !=, <, >, >=, <= <=> gt, ge, eq, lt, le, cmp • Boolean &&, ||, ! • Repetition x3, x4