Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
spider-mario
· 5mo ago · 0 comments
Same in Perl, hence the good old pattern:
open my $fh, '<', 'input.txt' or die;
Comments
[–]
codesnik
5mo ago
yes, ruby inherited this from perl, though 'or' has lower precedence than 'and' in perl, and they're equal in ruby. Which sounds like something going to cause mistakes, but I yet to see 'and' and 'or' together in the same expression in ruby.