in reply to Re^2: Reference of constants and literals
in thread Reference of constants and literals
Thats a matter of interpretation, the behaviour of push @arr, "elem" can be reproduce with prototypes sub name (\@@)
The prototype is just syntactic sugar for taking a reference (plus extra behaviour, for example enforcing list context), so independently of what it looks like on the caller side, the callee always sees a reference, never the array itself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Reference of constants and literals
by LanX (Saint) on Nov 24, 2008 at 11:28 UTC | |
by ikegami (Patriarch) on Nov 24, 2008 at 11:49 UTC | |
by LanX (Saint) on Nov 24, 2008 at 16:23 UTC | |
by ikegami (Patriarch) on Nov 24, 2008 at 16:37 UTC | |
by LanX (Saint) on Nov 24, 2008 at 16:57 UTC | |
|