Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: subroutine argumentsby murugu (Curate) |
on Oct 25, 2005 at 12:13 UTC ( [id://502684]=note: print w/replies, xml ) | Need Help?? |
The problem here is the array @c1_uniq_cog_ids and the scalar variable $name1 have got flattened and will be stored in the variable @c1_uniq_cog_ids inside your subroutine. So inorder to retain the values you need to pass the array as reference.
In your case even you can reverse the way in which your parameters are passed.
Hope this may shed some light.... Regards,
In Section
Seekers of Perl Wisdom
|
|