develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #113932] UNIVERSAL::can should support globrefs

Thread Previous
Father Chrysostomos via RT
July 7, 2013 05:30
[perl #113932] UNIVERSAL::can should support globrefs
Message ID:
On Mon Jul 23 20:02:18 2012, wrote:
> * Father Chrysostomos <> [2012-07-01T17:32:22]
> > That it should support globrefs is unquestionable.
> I hate not taking a challenge like that, but I agree. :-)
> > But, in addition to \*ARGV, should UNIVERSAL::can(...) accept *ARGV?
> > should it treat "ARGV" as \*ARGV?
> I believe the answer to both of those is "yes."  Who disagrees?

I think I might. :-)

If someone has a package named FOO and a file handle named FOO, then
"FOO"->turn will turn the handle, but UNIVERSAL::can("FOO",
"unwrap")->("FOO") will unwrap the package.  Is that a bug, or an
available workaround?


Father Chrysostomos

via perlbug:  queue: perl5 status: open

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About