:) I'm a bit surprized to see that things seem to be OK despite the lack of apostroph escaping - but you see that, at least in this case, 'or' is quite OK.$ perl -mO=Deparse -e 'if ( $1 eq 'A' || $1 eq 'B' ) { }' if ($1 eq 'A' or $1 eq 'B') { (); }
if( ($1 eq 'A') or ($1 eq 'B') ) { ...}
In reply to Re^2: || vs or
by Krambambuli
in thread || vs or
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |