What is the difference between the C-style operators &&
, ||
, ... and their Perl human-readable version "and
", "or
", ...?
It seems that Internet code uses them both:
open (FILE, $file) or die("cannot open $file");
open (FILE, $file) || die("cannot open $file");
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…