perlquestion
LanX
Hi<P>
I stumbled over [METAMOD://Pod::Functions] which provides a list of all Perl builtins listed in [DOC://perlfunc|<tt>perlfunc</tt>] plus short-description.<P>
<c>
use strict;
use warnings;
use Data::Dump qw/pp dd/;
use Pod::Functions;
pp '\%Flavor: ', \%Flavor;
pp '\%Type_Description: ', \%Type_Description;
pp '\@Type_Order: ', \@Type_Order;
pp '\%Kinds: ', \%Kinds;
pp '\%Type: ', \%Type;
</c>
<c>
(
"\\%Flavor: ",
{
"-X" => "a file test (-r, -x, etc)",
"__FILE__" => "the name of the current source file",
"__LINE__" => "the current source line number",
"__PACKAGE__" => "the current package",
"__SUB__" => "the current subroutine, or C<undef> if not in a subroutine",
"abs" => "absolute value function",
"accept" => "accept an incoming socket connect",
"alarm" => "schedule a SIGALRM",
"atan2" => "arctangent of Y/X in the range -PI to PI",
...
</c><P>
But it doesn't have an option to return the usage examples, like<P>
<c>
split /PATTERN/,EXPR,LIMIT
split /PATTERN/,EXPR
split /PATTERN/
</c><P>
any standard recommendation how to get this, without hacking it with [METAMOD://Pod::Simple] et al? <P>
<div class="pmsig"><div class="pmsig-708738">
<p>Cheers Rolf<br>
<sub>(addicted to the Perl Programming Language and [http://i.dailymail.co.uk/i/pix/2014/07/14/article-2690897-1F9F6C0E00000578-463_964x629.jpg|☆☆☆☆] :)
<br> <i> [id://1153804|Wikisyntax for the Monastery]</i>
</sub> <P>
</div></div><!-- Wiki2Monks {"version":1.1416} -->