On Fri, Oct 11, 2002 at 10:10:22AM -0700, david wrote: > 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:
@+ and @- were recently made readonly. That is why "@+ = qw/b c d/" gives "Modification of a read-only value attempted". -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]