在 Oct 29, 2006 4:34 PM 時,Richard Hainsworth 寫到:
If I have the following
my $self = some text;
my $nself = ~eval(q/self is $self/,:langperl5);
then surely $nself should be self is some text.
But it is not. $self is not set inside the eval in pugs.
But
say ~eval(q/self is $self/);
yields
If I have the following
my $self = some text;
my $nself = ~eval(q/self is $self/,:langperl5);
then surely $nself should be self is some text.
But it is not. $self is not set inside the eval in pugs.
But
say ~eval(q/self is $self/);
yields
self is some text
Is this correct behaviour?
If yes,
在 Oct 29, 2006 4:34 PM 時,Richard Hainsworth 寫到:
If I have the following
my $self = some text;
my $nself = ~eval(q/self is $self/,:langperl5);
then surely $nself should be self is some text.
But it is not. $self is not set inside the eval in pugs.
The lexical pad is not yet shared with