>[Quoting David L. Nicol, on August 21 2000, 23:06, in "Re: RFC 132 (v1) sub"]
>> Looks like a case for automatic dereferencing!
>Which Perl has always stated it would _never_ do.
Kinda.
To be honest, Perl does do autoderef in at least two places.
1.
$fh = *FH;
$fh = \*FH
can be used equivalently, because a typeglob ref is autodereffed
as need be in I/O operations. (Not to mention *FH{IO}, even.)
2. bless doesn't bless the reference passed, but its underlying referent,
doing an autoderef to find the referent.
and maybe
3.
$glob = 'SYM';
$glob = *SYM;
are equivalent.
--tom
- Re: RFC 132 (v1) subroutines should be a... Johan Vromans
- Re: RFC 132 (v1) subroutines should... Chaim Frenkel
- Re: RFC 132 (v1) subroutines sh... Johan Vromans
- Re: RFC 132 (v1) subroutines sh... Chaim Frenkel
- Re: RFC 132 (v1) subroutines sh... Johan Vromans
- Re: RFC 132 (v1) subroutines sh... Chaim Frenkel
- Re: RFC 132 (v1) subroutines should... Damian Conway
- Re: RFC 132 (v1) subroutines should be able to retur... David L. Nicol
- Re: RFC 132 (v1) subroutines should be able to return an ... David L. Nicol
- Re: RFC 132 (v1) subroutines should be able to retur... Johan Vromans
- Tom Christiansen
