in reply to Array refs
sub func1 { # do some stuff return [$a, $b]; } [download]
$ref = fuc1(); #or @ref = @{func1()}; [download]