Skip Menu |

This queue is for tickets about the Net-Server-Coro CPAN distribution.

Report information
The Basics
Id: 70726
Status: resolved
Priority: 0/
Queue: Net-Server-Coro

People
Owner: Nobody in particular
Requestors: chip [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.9
Fixed in: (no value)



Subject: TIEHANDLE requires a "*" in next Perl version
In Perl 5.16, if you want to tie a glob copy as a handle, you need to explicitly denote *foo or *$foo in the tie statement. Thus, tie $self, 'Net::Server::Proto::Coro::FH', fh => $fh, @_; should become tie *$self, 'Net::Server::Proto::Coro::FH', fh => $fh, @_; Please be sure to release this change before Perl 5.14 comes out. Also sooner would help the core perl devs use your module. Thanks
From: chip [...] pobox.com
On Sun Sep 04 19:11:42 2011, CHIPS wrote: Show quoted text
> In Perl 5.16, if you want to tie a glob copy as a handle, you need to > explicitly denote *foo or *$foo in the tie statement. Thus, > > tie $self, 'Net::Server::Proto::Coro::FH', fh => $fh, @_; > > should become > > tie *$self, 'Net::Server::Proto::Coro::FH', fh => $fh, @_; > > Please be sure to release this change before Perl 5.14 comes out.
Also Show quoted text
> sooner would help the core perl devs use your module. Thanks
It seems the * is needed on the bless as well, a la bless \*$self.
Subject: Re: [rt.cpan.org #70726] TIEHANDLE requires a "*" in next Perl version
Date: Mon, 05 Sep 2011 01:59:44 -0400
To: bug-Net-Server-Coro [...] rt.cpan.org
From: Alex Vandiver <alex [...] chmrr.net>
On Sun, 2011-09-04 at 19:11 -0400, Chip Salzenberg via RT wrote: Show quoted text
> In Perl 5.16, if you want to tie a glob copy as a handle, you need to > explicitly denote *foo or *$foo in the tie statement. Thus, > > tie $self, 'Net::Server::Proto::Coro::FH', fh => $fh, @_; > > should become > > tie *$self, 'Net::Server::Proto::Coro::FH', fh => $fh, @_;
Thanks for the report; I've released Net-Server-Coro 1.0, which should resolve this. - Alex