misterperl has asked for the wisdom of the Perl Monks concerning the following question:
is false. So, I set a break like this:if ($name =~ /^_?[^\W_0-9]\w*\z/ and !$forbidden{$name}) {
and sure enough, it broke there. (My name is simple, DB_ERROR.) That's when things got weird, at the break, I tried:<DBG>b 52 $name !~ /^_?[^\W_0-9]\w*\z/
<DBG>x $name =~ /^_?[^\W_0-9]\w*\z/ 1
..another mystery, how the HECK DID IT break there? I tried:DB<4> x $name !~ /^_?[^\W_0-9]\w*\z/ 0 ''
which looks logically the same as <code> $name !~ /^_?^\W_0-9\w*\z/ <code> but, now more weirdness, it no longer breaks there.<DBG>b 52 ! $name =~ /^_?[^\W_0-9]\w*\z/
My spyder sense tells me this is due to some pragma/debugger weirdness, since I'm breaking in the pragma. But the issue is there is nothing wrong with my use statement, yet it throws that unknown error warning, and I was trying to see why.
Wisdom please?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strange constants.pm warning
by Perlbotics (Archbishop) on Aug 30, 2021 at 17:57 UTC | |
by misterperl (Friar) on Aug 30, 2021 at 18:02 UTC | |
by misterperl (Friar) on Aug 30, 2021 at 18:11 UTC | |
by Perlbotics (Archbishop) on Aug 30, 2021 at 18:34 UTC | |
by misterperl (Friar) on Aug 31, 2021 at 18:16 UTC | |
by tobyink (Canon) on Sep 03, 2021 at 11:38 UTC | |
|
Re: strange constants.pm warning
by misterperl (Friar) on Sep 01, 2021 at 12:56 UTC | |
by hippo (Archbishop) on Sep 01, 2021 at 13:42 UTC | |
by misterperl (Friar) on Sep 02, 2021 at 15:21 UTC | |
|
Re: strange constants.pm warning
by Anonymous Monk on Aug 31, 2021 at 15:19 UTC | |
by misterperl (Friar) on Aug 31, 2021 at 18:03 UTC | |
by misterperl (Friar) on Aug 31, 2021 at 18:09 UTC |