|Perl Language Reference Manual|
by Larry Wall and others
Paperback (6"x9"), 724 pages
RRP £29.95 ($39.95)
Sales of this book support The Perl Foundation! Get a printed copy>>>
Search pattern not terminated or ternary operator parsed as search pattern
(F) The lexer couldn't find the final delimiter of a
The question mark is also used as part of the ternary operator (as in
foo ? 0 : 1) leading to some ambiguous constructions being wrongly
parsed. One way to disambiguate the parsing is to put parentheses around
the conditional expression, i.e.
(foo) ? 0 : 1.
|ISBN 9781906966027||Perl Language Reference Manual||See the print edition|