On Wednesday 14 April 2004 11:47, [EMAIL PROTECTED] wrote: > > > On Apr 14, 2004, at 2:06 AM, Bryan Harris wrote: > > > > The above line could also be written: > > > > substr $_, index($_, $ss), length($ss), $rs; > > Wouldn't it be this instead? > > substr $_, index($_, $ss), length($ss) = $rs;
That won't work. Because of precedence it evaluates to: substr $_, index($_, $ss), ( length($ss) = $rs ); > I was looking up substr and didn't see a fourth parameter. Didn't > have a chance to try it either :-) perldoc -f substr substr EXPR,OFFSET,LENGTH,REPLACEMENT ^^^^^^^^^^^ substr EXPR,OFFSET,LENGTH substr EXPR,OFFSET John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>