2010-04-25
■[Perl]select some sections from Module's POD
Usage:
% podsection Catalyst SYNOPSIS # as text % podsection -u Catalyst SYNOPSIS # as plain pod % podsection Catalyst req # show pod of req method
Examle:
%podsection Catalyst req res
$c->req
Returns the current Catalyst::Request object, giving access to
information about the current client request (including parameters,
cookies, HTTP headers, etc.). See Catalyst::Request.
$c->res
Returns the current Catalyst::Response object, see there for details.
I create this module to abstract the part of Module's function/method explanation.
So, the sections like SYNOSIS, DESCRIPTION etc. are not assumed, but it works well in most case.
If you use this module in program,
use Pod::Section qw/select_podsection/; my $pod = select_podsection("Catalyst", "req");
To parse POD, This module uses Pod::Abstract.
トラックバック - http://d.hatena.ne.jp/ktat/20100425/1272132283
リンク元
- 18 http://reader.livedoor.com/reader/
- 8 http://www.google.com/reader/view/
- 6 http://cc.bingj.com/cache.aspx?q=online+shopping+"hotmail+com"+"hotmail+co+uk"+"msn+com"&d=4574183204982170&mkt=uk-UA&setlang=uk-UA&w=aa4207fb,4f678f8a
- 6 http://d.hatena.ne.jp/
- 6 http://ironman.enlightenedperl.org/
- 5 http://www.ftnk.jp/~fumi/cl/2009-07-01-1.html
- 5 http://www.google.co.jp/reader/view/
- 5 http://www.google.co.jp/search?q=MyDNS&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja:official&hl=ja&client=firefox-a
- 3 http://delicious.com/otsune
- 3 http://search.yahoo.co.jp/search?p=首 バキバキ&search.x=1&fr=top_ga1_sa&tid=top_ga1_sa&ei=UTF-8&aq=&oq=





































