Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: pp: modules disappearing while program runs?by pryrt (Abbot) |
on Apr 07, 2022 at 13:17 UTC ( [id://11142796]=note: print w/replies, xml ) | Need Help?? |
What if you delete the %INC entry (delete $INC{'Blah/Blah.pm'} for removing Blah::Blah) before the second require ... In my experiments (*), that allows me to have the require work again: ./lib/Blah/Blah.pm:
./example.pl:
output:
Edit: add footnote: *: well, at the command line; I admit I didn't try in a pp executable
In Section
Seekers of Perl Wisdom
|
|