We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f1758 commit ce739c7Copy full SHA for ce739c7
1 file changed
lib/PDL/Doc.pm
@@ -842,11 +842,11 @@ returning a hash of the functions found therein.
842
843
sub scantext {
844
my ($text, $filename, $verbose) = @_;
845
- open my $infile, '<', \$text;
846
my $parser = PDL::PodParser->new;
847
$parser->{verbose} = $verbose;
848
open my $outfile, '>', \(my $outfile_text);
849
- eval { $parser->parse_from_filehandle($infile,$outfile) };
+ $parser->output_fh($outfile);
+ eval { $parser->parse_string_document($text) };
850
warn "cannot parse: $@" if $@ and $@ ne "no function defined\n";
851
my %hash;
852
$_->{File} = $filename for values %{ $parser->{SYMHASH} };
0 commit comments