C:>perl -MO=Deparse,-p -e"@_ ? $param2 = 'Shift' : $param2 = shift;" ((@_ ? ($param2 = 'Shift') : $param2) = shift(@ARGV)); -e syntax OK ( ( @_ ? ( $param2 = 'Shift') : $param2 ) = shift(@ARGV) );
In reply to Re^2: Confused by Perl ternary operator
by Anonymous Monk
in thread Confused by Perl ternary operator
by newest_newbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |