I know that I can't take reference to the return value of a subroutine directly. But I want to know why? Here is an example.
sub foo{ return (0, 1); } my $var = \(foo()); # $var is not a reference to the array (0, 1).
In reply to Reference to return value of a subroutine by Christina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |