An else is a bit like a code block on the righthand side of an or.
if (open my $fh, '<', $file){ print "file opened\n"; else{ print "open failed: $!"; }
In reply to Re: Code Blocks
by wfsp
in thread Code Blocks
by Ronnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |