Sudarshan Raghavan wrote: > On Thu, 10 Oct 2002, John W. Krahn wrote: > >> What version of Perl are you using? > > perl 5.8.0
cool. no time for 5.8.x yet. > >> $ 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 which distribution of Perl you have? ActiveState? the Mac side? be specific. your statement is far reaching. did you try what you just said? do you mean you have to use s/\@+/xxx/ instead of just s/@+/xxx/ in 5.6.1? try it before you post: #!/usr/bin/perl -w use strict; use 5.6.1; my $i = 'abcd@@@@1234'; $i =~ s/@+/__hahaha__/; print "$i\n"; #-- guess what that prints __END__ prints: abcd__hahaha___1234 my stuff: [dzhuo@panda perl]# perl -v This is perl, v5.6.1 built for i386-linux lastly, escapeing won't hurt too. if that's what 5.8.x say, you might as well get in the habit to do it now. david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]