in reply to Declaring variables - is it legal to do this?
my ($name, $dept, $status) = (get_info())[0,1,3]; [download]
Yes, I have used it in my code and there doesn't seem to be any problems but I wanted to be sure that I'm not inventing the wrong syntax :)