in reply to Re: || vs or
in thread || vs or
:) 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') ) { ...}
|
|---|