> TC> ($this = $that) =~ s/foo/bar/;
> TC> for (@these = @those) { s/foo/bar/ }
> TC> You can't really do those in one step without it.
>but do they really need to be combined into one step? i sometimes prefer
>the separate assignment statement for clarity. other times i feel i am
>in a compressing mood.
It's like why you can say
while ( (ch = getc()) != EOF ) { ... }
With assignment an expression, not a statement, you can use
a larger expression. Python people hate this. :-)
--tom
- Re: Overlapping RFCs 135 138 164 Uri Guttman
- Re: Overlapping RFCs 135 138 164 Tom Christiansen
- copying and s/// (was Re: Overlapping RFCs 1... Uri Guttman
- Re: copying and s/// (was Re: Overlappin... Nathan Wiger
- Re: copying and s/// (was Re: Overlappin... Brad Hughes
- Re: copying and s/// (was Re: Overlappin... Mike Lambert
- Re: copying and s/// (was Re: Overlappin... Nathan Wiger
- Re: copying and s/// (was Re: Overlappin... Tom Christiansen
- Re: copying and s/// (was Re: Overlappin... Tom Christiansen
- Re: copying and s/// (was Re: Overlappin... Tom Christiansen
- Re: copying and s/// (was Re: Overlappin... Tom Christiansen
- Re: copying and s/// (was Re: Overlappin... David L. Nicol
- Re: Overlapping RFCs 135 138 164 Steve Fink
- Re: Overlapping RFCs 135 138 164 Tom Christiansen
- Re: Overlapping RFCs 135 138 164 Nathan Wiger
