- 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>>>

Useless (?%s) - use /%s modifier in regex; marked by <-- HERE in m/%s/

(W regexp) You have used an internal modifier such as (?o) that has no meaning unless applied to the entire regexp:

if ($string =~ /(?o)$pattern/) { ... }

must be written as

if ($string =~ /$pattern/o) { ... }

The <-- HERE shows in the regular expression about where the problem was discovered. See 11.

ISBN 9781906966027Perl Language Reference ManualSee the print edition