
perlfaq.blogspot.com
Perl Scripting FAQ'sWednesday, August 6, 2008. Logical operators are such things as OR, NOT, AND. They all evaluate expressions. The expression evaluates to true, or false. Exactly what criteria for evaluation are used depends on the operator. The or operator works as follows:. Open STUFF, $stuff or die "Cannot open $stuff for read :$! This line means - if the operation for opening STUFF fails, then do something else. Another example:. R/ or print "Doesn't start with R n";. Precedence: What comes First. Perl -e"print 2 8.
http://perlfaq.blogspot.com/