This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ch(dir|mod|own) should not ignore get-magic on glob(ref)s
authorFather Chrysostomos <sprout@cpan.org>
Fri, 9 Sep 2011 01:03:02 +0000 (18:03 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 9 Sep 2011 01:03:47 +0000 (18:03 -0700)
commit935647290357b277a54366c3caf2ddc89bfbd3eb
treef7a8e1824ccf51a775c703fc284e3d502ab18a02
parent8d4393cf0f53c9e46fd1338d29417f254bd6d1cd
ch(dir|mod|own) should not ignore get-magic on glob(ref)s

When the chdir(*handle) feature was added in 5.8.8, the fact that
globs and refs could be magical was not taken into account.

They can easily be magical if a typeglob or reference is returned from
or assigned to a tied variable.
doio.c
pod/perldelta.pod
pp_sys.c
t/op/tie_fetch_count.t