(Win32 doesn't like the runperl() prog having newlines in it)
p4raw-id: //depot/perl@31985
like($out, qr/FUNC: \*Data::Dumper::format_refaddr/,
"stash rendering loads package as needed");
-my $prog = q{
- package FOO;
- sub bar { print "bar" }
- package main;
- FOO::bar();
-};
+my $prog = q{package FOO; sub bar { print "bar" } package main; FOO::bar(); };
+
# this would fail if %INC used for -stash test
$out = runperl ( switches => ["-MO=Concise,-src,-stash=FOO,-main"],
prog => $prog, stderr => 1 );