sub foo { return ({},[]); } my (%baz, @bar); (\%baz,\@bar) = &foo(); #### Can't modify reference constructor in list assignment at foo.pl line 5, near ");" Execution of foo.pl aborted due to compilation errors.