open $val, '<', \$str;
is(readline($stash->get_package_symbol('FOO')), "foo",
"got the right variable");
+ seek($stash->get_package_symbol('FOO'), 0, 0);
{
package Io;
::isa_ok(*FOO{IO}, 'IO');
+ ::is(<FOO>, "foo",
+ "stash has the right variable");
}
}
}
open $val, '<', \$str;
is(readline($stash->get_package_symbol('FOO')), "foo",
"got the right variable");
+ seek($stash->get_package_symbol('FOO'), 0, 0);
}
{
package Io::Vivify;
no warnings 'once';
::isa_ok(*FOO{IO}, 'IO');
+ ::is(<FOO>, "foo",
+ "stash has the right variable");
}
}