Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

modifying within a perl5 block

8 views
Skip to first unread message

Richard Hainsworth

unread,
Nov 5, 2006, 5:44:31 AM11/5/06
to perl6...@perl.org
Dear Audrey,

Consider:
my $x = 'test';
{
use v5;
$x .= 'ing';
};
say $x;

pugs yields 'test'
and not 'testing' - as expected.

Moreover, the following hangs pugs:

my $x = 'test';
my $y = 'case';
{
use v5;
$x .= 'ing';
{
use v6-alpha;
$y ~= 'book';
};
};
say $x;
say $y;

I have committed a test to t/perl5, viz., modify_inside_p5.t (which runs
but fails)
and I attach another. viz., modify_inside_p5_p6.t , which hangs pugs.

Regards,
Richard

modify_inside_p5_p6.t
0 new messages