- or download this
perl -le '$_ = "a"; print do { if( length ){ "A" } else{ "B" } };'
- or download this
A
- or download this
perl -le '$_ = "a"; print length ? "A" : "B" '
- or download this
Warning: Use of "length" without parentheses is ambiguous at -e line 1
+.
Use of ?PATTERN? without explicit operator is deprecated at -e line 1.
Search pattern not terminated or ternary operator parsed as search pat
+tern at -e line 1.
- or download this
perl -le '$_ = "a"; print length . '' ? "A" : "B" '
- or download this
Use of ?PATTERN? without explicit operator is deprecated at -e line 1.
Search pattern not terminated or ternary operator parsed as search pat
+tern at -e line 1.
- or download this
perl -le '$_ = "a"; print length + 0 ? "A" : "B" '
- or download this
Warning: Use of "length" without parentheses is ambiguous at -e line 1
+.
A