push @arr, ('val', '$str');
with
push @arr, ('val', $str);
In reply to Re: Push + variable argument by apl in thread Push + variable argument by himanshu.padmanabhi