t/io/binmode.t
[p5sagit/p5-mst-13.2.git] / pp_ctl.c
index 1605e21..e79d45d 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3153,7 +3153,9 @@ trylocal: {
                    int count;
                    SV *loader = dirsv;
 
-                   if (SvTYPE(SvRV(loader)) == SVt_PVAV) {
+                   if (SvTYPE(SvRV(loader)) == SVt_PVAV
+                       && !sv_isobject(loader))
+                   {
                        loader = *av_fetch((AV *)SvRV(loader), 0, TRUE);
                    }