Re: How do I get Pod::Simple to extract pod from its containing file?

[email protected] (Russ Allbery) Sat, 26 Jan 2013 13:23:11 -0800
Newsgroups perl.pod-people
Organization The Eyrie
Message-ID <[email protected]>
Karl Williamson <[email protected]> writes:

> With Pod::Parser, you just do
> 	parse_from_file($in_fh, $out_fh)

> and it outputs the pod to $out_fh.  Pod::Simple has a method of the same
> name which is supposed to emulate the Pod::Parser method, but when I run
> it, nothing is output.

Did you flush $out_fh?  Pod::Parser did that but Pod::Simple doesn't, so
it's possible if you're doing something short that the entire output was
still buffered.

Pod::Man and Pod::Text use this Pod::Simple method and do have test suites
for it and it seems to work.

-- 
Russ Allbery ([email protected])             <http://www.eyrie.org/~eagle/>