X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperltie.pod;h=162272bd740507058b9699560831cfa22034e6ce;hb=8226a3d7ea7a9414bc41d73011d23876bd55e4b8;hp=b4c2baf20f665a13efa58fba74235927b2c355d8;hpb=d74e8afc9309529cf5c6c4390fc311850865d506;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perltie.pod b/pod/perltie.pod index b4c2baf..162272b 100644 --- a/pod/perltie.pod +++ b/pod/perltie.pod @@ -900,12 +900,14 @@ C function. X This method will be triggered every time the tied handle is printed to -with the C function. -Beyond its self reference it also expects the list that was passed to -the print function. +with the C or C functions. Beyond its self reference +it also expects the list that was passed to the print function. sub PRINT { $r = shift; $$r++; print join($,,map(uc($_),@_)),$\ } +C acts just like C except $\ will be localized to C<\n> so +you need do nothing special to handle C in C. + =item PRINTF this, LIST X @@ -1010,7 +1012,7 @@ a scalar. sub TIESCALAR { my $class = shift; my $filename = shift; - my $handle = new IO::File "> $filename" + my $handle = IO::File->new( "> $filename" ) or die "Cannot open $filename: $!\n"; print $handle "The Start\n";