This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #113932] UNIVERSAL::can with globs and globrefs
(Also perl #118105.)
This allows *ARGV->can("print") to work as long as IO::Handle is
loaded. This translates into UNIVERSAL::can(\*ARGV,"print"). This
commit also changes UNIVERSAL::can to accept a plain *ARGV as well.
UNIVERSAL::can("ARGV",...) is left as it is (ARGV is treated as a pack-
age name), because changing that requires a bigger patch, and I don’t
know when I will get to it.