Keep It Simple, Stupid | |
PerlMonks |
Re^3: HTML::Parser / Regexby kcott (Archbishop) |
on May 29, 2017 at 03:34 UTC ( [id://1191473]=note: print w/replies, xml ) | Need Help?? |
"... the error "Can't use global $1 in "my"" ..." Somewhere in your code, you have "... my $1 ...". Here's a couple of examples:
You can find the full description of the problem from "perldiag - Perl diagnostic messages". Until you're familiar with that document, it can be a bit difficult finding the information. In this instance, you'd need to search for "Can't use global" (not "Can't use global $1"). Doing so, locates this: Can't use global %s in "%s" While you're learning, you may find it useful to use the diagnostics pragma. Put this line near the start of your code:
That will give you a full description, rather than the somewhat terse shortened form. Important: That pragma is intended as a developer tool. Do not leave it production code. — Ken
In Section
Seekers of Perl Wisdom
|
|