in reply to Re^6: Declare and slice-initialize hash in one statement?
in thread Declare and slice-initialize hash in one statement?
Yeah, just too darn subtle.
sub x (\@\@) { print "@_" } @_ = qw[ some random junk retained from the current level of call ]; @a = 1..10; @b='a'..'g'; x @a, @b; ARRAY(0x1961458) ARRAY(0x196156c) &x( @a, @b ); 1 2 3 4 5 6 7 8 9 10 a b c d e f g &x, @a, @b; some random junk retained from the current level of call
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Declare and slice-initialize hash in one statement?
by BUU (Prior) on Oct 27, 2005 at 20:23 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2005 at 20:50 UTC |