Contenu connexe
Similaire à Learn Perl Programming with this Comprehensive Perl Seminar Guide
Similaire à Learn Perl Programming with this Comprehensive Perl Seminar Guide (20)
Learn Perl Programming with this Comprehensive Perl Seminar Guide
- 42. Basic 1-2 : Array Variable
: @VariableName
$#VariableName :
- 43. Basic 1-2 : Array Variable
: @VariableName
$#VariableName :
$VariableName[n] : n
- 48. Basic 1-3 : Hash Variable
( ) : %VariableName
$VariableName{key} : key value
- 60. Basic 2-1 : Numeric Operator
+ - * /
t Ba sic!
t is jus
I
- 63. Basic 2-1 : Numeric Operator
+= -= *= /=
ad d =
Jus t
- 81. Basic 3-1-1 : Normal For
for(Init; Cond; Inc) {
# Something Todo
}
- 91. Basic 3-1-2 : Foreach
foreach $Value (List) {
# Something Todo
}
- 94. Basic 3-2 : While
while(condition) {
# something to do
}
- 103. Basic 5-1 : File I/O
open(HANDLE, < or > or >>, FILENAME)
- 104. Basic 5-1 : File I/O
open(HANDLE, < or > or >>, FILENAME)
Input: <HANDLE>;
- 105. Basic 5-1 : File I/O
open(HANDLE, < or > or >>, FILENAME)
Input: <HANDLE>;
Output: print DESTINATION SOURCE;
- 106. Basic 5-1 : File I/O
open(HANDLE, < or > or >>, FILENAME)
Input: <HANDLE>;
Output: print DESTINATION SOURCE;
close HANDLE;
- 110. Basic 5-2 : Console I/O
Input: <STDIN>;
Output: print;
- 111. Basic 5-2 : Console I/O
Input: <STDIN>;
Output: print;
ReadMode 'noecho';