in reply to Subroutines....return directory file is in and return contents in array

One thing Perlbotics did not explicitly mention is that the . is forcing scalar context. You can use comma to allow list context:
print "\nContents: " , contents();
  • Comment on Re: Subroutines....return directory file is in and return contents in array
  • Download Code

Replies are listed 'Best First'.
Re^2: Subroutines....return directory file is in and return contents in array
by csorrentini (Acolyte) on Jun 26, 2014 at 19:31 UTC
    Awesome thanks I'll try that now and look into those modules.