Re: Lvaluability

2001-04-27 Thread Graham Barr
On Sat, Apr 28, 2001 at 03:11:08AM +0100, Simon Cozens wrote: > substr($foo, 1, 3) = "hi!"; # We all know this. > splice(@foo, 1, 3) = @bar; # But the lack of this seems asymmetric An originally we had splice(@foo, 1, 3, @bar); but not substr($foo, 1, 3, "hi!"); which are more useful, IM

Lvaluability

2001-04-27 Thread Simon Cozens
substr($foo, 1, 3) = "hi!"; # We all know this. splice(@foo, 1, 3) = @bar; # But the lack of this seems asymmetric $baz = $foo.bar;# Surely this is just overloaded "." being a # subroutine in $foo's package called with a # barew