|
|
| Think about Loose Coupling | |
| PerlMonks |
Extracting an array from a moduleby jonnyfolk (Vicar) |
| on Oct 13, 2007 at 07:21 UTC ( #644609=perlquestion: print w/ replies, xml ) | Need Help?? |
|
jonnyfolk has asked for the
wisdom of the Perl Monks concerning the following question:
I have written a module which contains some oft used subroutines. One routine is simply extracting data from a file into an array. I have written the code in a couple of ways, both seem to do the job ok:
The other way
In the former example can I get the scalar out of the subroutine without creating a sacrificial $gencli? Is the second way 'wrong'? thank you
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||