in reply to Subroutine as an lvalue?
see the Lvalue subroutines section.
another cool thing along these lines is using builtins like substr as lvalues. here's an example (i think it should work with 5.005_03 or higher, possibly earlier versions):
_bar_$foo = "_123_"; substr($foo, 1, 3) = "bar"; print "$foo\n";
|
|---|