This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ed6508
)
use modern Perl style in example
author
Alexandr Ciornii
<alexchorny@gmail.com>
Tue, 11 May 2010 15:41:22 +0000
(18:41 +0300)
committer
David Golden
<dagolden@cpan.org>
Thu, 15 Jul 2010 14:38:59 +0000
(10:38 -0400)
Signed-off-by: David Golden <dagolden@cpan.org>
pod/perltie.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perltie.pod
b/pod/perltie.pod
index
370f644
..
791753d
100644
(file)
--- a/
pod/perltie.pod
+++ b/
pod/perltie.pod
@@
-673,9
+673,9
@@
method on the original object reference returned by tie().
croak "@{[&whowasi]}: $file not clobberable"
unless $self->{CLOBBER};
- open(
F, "> $file"
) || croak "can't open $file: $!";
- print
F
$value;
- close(
F
);
+ open(
my $f, '>', $file
) || croak "can't open $file: $!";
+ print
$f
$value;
+ close(
$f
);
}
If they wanted to clobber something, they might say: