Think about Loose Coupling | |
PerlMonks |
Re^2: Returning all data from subroutineby Laurent_R (Canon) |
on Nov 05, 2014 at 08:21 UTC ( [id://1106160]=note: print w/replies, xml ) | Need Help?? |
You are passing an argument to your subroutines, but using $string essentially as a global variable. That is defeatring the purpose of funnctions receiving arguments and returning values, which can thus be abstracted out as black boxes.
In Section
Seekers of Perl Wisdom
|
|