Don't ask to ask, just ask | |
PerlMonks |
Re: Printing POD info to terminal window without exitingby davido (Cardinal) |
on Aug 05, 2021 at 15:04 UTC ( [id://11135619]=note: print w/replies, xml ) | Need Help?? |
You already answered your own question by following up to state that -exitval => 'NOEXIT' works. I had found this to work just fine, as well. But it wouldn't be Perl if it didn't arouse curiosity. I was curious if I could override CORE::GLOBAL::exit effectively. Turns out I can (though this isn't to say I should):
This produces the following output:
So this demonstrates that NOEXIT works, and that overriding CORE::GLOBAL::exit can work. Dave
In Section
Seekers of Perl Wisdom
|
|