nysus has asked for the wisdom of the Perl Monks concerning the following question:
Got this:
sub _run_chain { my $s = shift; my $sub = shift; for my $r ( @{ $s->{_classes} } ) { no strict 'refs'; $r->$sub if $r->can($sub); } }
But still getting: died: Can't use string ("File::Collector::Date::Classifie"...) as a HASH ref while "strict refs" in use
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to turn off strict refs
by LanX (Saint) on Sep 04, 2019 at 00:51 UTC | |
|
Re: Unable to turn off strict refs
by chromatic (Archbishop) on Sep 03, 2019 at 21:46 UTC | |
by nysus (Parson) on Sep 03, 2019 at 21:51 UTC | |
by chromatic (Archbishop) on Sep 03, 2019 at 23:12 UTC | |
by nysus (Parson) on Sep 04, 2019 at 00:19 UTC | |
|
Re: Unable to turn off strict refs
by jcb (Parson) on Sep 04, 2019 at 02:43 UTC | |
|
Re: Unable to turn off strict refs
by tybalt89 (Monsignor) on Sep 03, 2019 at 22:38 UTC | |
by nysus (Parson) on Sep 03, 2019 at 22:44 UTC | |
by tybalt89 (Monsignor) on Sep 04, 2019 at 00:11 UTC |