Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Returning string and numerical data types from subroutinesby saurabh.hirani (Beadle) |
on May 16, 2009 at 05:27 UTC ( [id://764391]=note: print w/replies, xml ) | Need Help?? |
Thank you all for your feedback. I was avoiding the eval approach because I didn't want the program to die if the subroutine call fails. But then, as most of the posts suggested - its better to take matters in your own hands than to trust the library user with error checking and handling. Makes sense. I will keep that in mind.
In Section
Seekers of Perl Wisdom
|
|