On Thu, 10 Oct 2002, John W. Krahn wrote:

> What version of Perl are you using?
 
perl 5.8.0
 
> $ perl -Mstrict -wle'@+ = qw/b c d/;(my $name = q/a b c d efg@@@@/) =~ s/@+//; print 
>$name'
> a b c d efg

When I run this on 5.8.0 it gives out a 'Modification of a read only attempted...'
Same with 5.6.1 as well, but not the case with 5.6.0

> $ perl -Mstrict -wle'my @a = qw/b c d/;(my $name = q/a b c d efg@@@@/) =~ s/@a//; 
>print $name'
> a  efg@@@@

5.6.1 or 5.6.0 don't seem to be interpolating @+, but do so for other 
arrays. 5.8.0 interpolates @+ as well. Currently reading through 
perldoc perldelta.

But I will stick with 'if you want to match a literal @, escape it'


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to