Skip to content

Commit 17429fc

Browse files
authored
Merge pull request #84 from plicease-pr/graham/doco-2
use $fh instead of $foo
2 parents 10cc8fc + 3522867 commit 17429fc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Parser.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ XML::Parser - A perl module for parsing XML documents
346346
Default => \&other);
347347
348348
open(my $fh, 'xmlgenerator |');
349-
$p3->parse($foo, ProtocolEncoding => 'ISO-8859-1');
350-
close($foo);
349+
$p3->parse($fh, ProtocolEncoding => 'ISO-8859-1');
350+
close($fh);
351351
352352
$p3->parsefile('junk.xml', ErrorContext => 3);
353353

README

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ SYNOPSIS
2121
Default => \&other);
2222

2323
open(my $fh, 'xmlgenerator |');
24-
$p3->parse($foo, ProtocolEncoding => 'ISO-8859-1');
25-
close($foo);
24+
$p3->parse($fh, ProtocolEncoding => 'ISO-8859-1');
25+
close($fh);
2626

2727
$p3->parsefile('junk.xml', ErrorContext => 3);
2828

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ XML::Parser - A perl module for parsing XML documents
2424
Default => \&other);
2525

2626
open(my $fh, 'xmlgenerator |');
27-
$p3->parse($foo, ProtocolEncoding => 'ISO-8859-1');
28-
close($foo);
27+
$p3->parse($fh, ProtocolEncoding => 'ISO-8859-1');
28+
close($fh);
2929

3030
$p3->parsefile('junk.xml', ErrorContext => 3);
3131

0 commit comments

Comments
 (0)