Suggestion to split an entry in perlfaq8 · Issue #122 · perl-doc-cats/perlfaq

This one: https://github.com/perl-doc-cats/perlfaq/blob/master/lib/perlfaq8.pod#how-can-i-do-an-atexit-or-setjmplongjmp-exception-handling The title is: How can I do an atexit() or setjmp()/longjmp...

GitHub

@Perl The #perldoc utility included with #Perl has long provided an -X option to find modules and POD files via a separate architecture-specific `pod.idx` file: https://perldoc.perl.org/perldoc#-X

But I can't find any tooling that creates or maintains this file as one installs and uninstalls module distributions. Does anything use this, or is it a vestigial feature from the late 90s?

(note that this has nothing to do with the rarely-used X<> POD formatting code: https://perldoc.perl.org/perlpod#X-an-index-entry)

perldoc - Look up Perl documentation in Pod format. - Perldoc Browser

How... had I never realized that "perldoc -f <builtin-function>” is a thing? Game changer!

I realized this as I'm poking around to find out if there is /any/ way (documented or not) to substitute the current program/topic in the =pod section, so I can copy a script template around and require fewer changes to get up and running.

If anyone has an answer to that (which may be of the form "Nope, no dice”), I would appreciate it.

 #perl #perldoc #pod #TIL

the qr operator for #regex-es in #perl returns a stringified Regexp object based on a (simple) scalar reference it seems, but why; i will lookup the #perldoc entry (the image being a result of a handy #termux experiment)