in reply to Questions about split
The problem here is that split() returns and array onto the stack, so i don't believe that you can get $user and use $user in the same array assignment. While there is more than one way to do it, I would look at the above for working code. As for the idea of this specific "syntactic sugar", i don't think i quite works.($user, $foo{$user}) = split /:/, $_, [2];
|
---|