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";
In reply to Re: Subroutine as an lvalue?
by mdillon
in thread Subroutine as an lvalue?
by xeh007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |