in reply to return data from a subroutine reference...

The above posters are correct - sometimes the answer is just too obvious right! If you haven't come across it yet, one of Perl's guiding principles is DWIM (Do What I Mean). In other words if you don't know how to express something in Perl, just try what seems natural - you'd be surprised just how often that works!
  • Comment on Re: return data from a subroutine reference...