- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

Bareword found in conditional

(W bareword) The compiler found a bareword where it expected a conditional, which often indicates that an || or && was parsed as part of the last argument of the previous construct, for example:

open FOO || die;

It may also indicate a misspelled constant that has been interpreted as a bareword:

use constant TYPO => 1;
if (TYOP) { print "foo" }

The strict pragma is useful in avoiding such errors.

ISBN 9781906966027Perl Language Reference ManualSee the print edition