develooper Front page | perl.perl5.porters | Postings from December 2001

[PATCH] perltie.pod (or what does it mean?)

From:
Wolfgang Laun
Date:
December 21, 2001 08:29
Subject:
[PATCH] perltie.pod (or what does it mean?)
Message ID:
3C236353.6625C4C0@alcatel.at
Since one can say
   my $$$x = 1;
there may be something in the sub below which I
don't understand, but it *works* with the change
and does not without.
-W

--- pod/perltie.pod.old	Fri Dec 21 17:01:08 2001
+++ pod/perltie.pod	Fri Dec 21 17:01:57 2001
@@ -850,7 +850,7 @@
 
     sub READ {
 	my $self = shift;
-	my $$bufref = \$_[0];
+	my $bufref = \$_[0];
 	my(undef,$len,$offset) = @_;
 	print "READ called, \$buf=$bufref, \$len=$len, \$offset=$offset";
 	# add to $$bufref, set $len to number of characters read



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About