Withnail has asked for the wisdom of the Perl Monks concerning the following question:
Here's the question: I'm using Find::File::name to get the names of pre-exisiting "vX.YY" directories. I push the output of Find::File::name onto an array. How do I pass the array, (array reference), to a subroutine and determine if it is zero-length or not?
What I've written so far seems to work provided the subroutine is in the same file as the main program. What I want to do is place the sub in a module and this is where it all goes wrong!
Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to determine if an array passed as an argument to a subroutine is zero-length
by blakem (Monsignor) on Sep 07, 2001 at 04:28 UTC | |
by Withnail (Novice) on Sep 07, 2001 at 21:06 UTC | |
|
Re: How to determine if an array passed as an argument to a subroutine is zero-length
by Zaxo (Archbishop) on Sep 07, 2001 at 04:32 UTC |