in reply to Re: Having trouble returning the correct values from my sub
in thread Having trouble returning the correct values from my sub

No I just want the return values
  • Comment on Re^2: Having trouble returning the correct values from my sub

Replies are listed 'Best First'.
Re^3: Having trouble returning the correct values from my sub
by almut (Canon) on Feb 26, 2009 at 22:16 UTC

    Then why pass $k?

    Also, you don't get values, you get exactly one value from get_directory(), because as soon as your regex matches, you're leaving the routine (and thus the foreach loop within the routine)...

      True! I am getting only one value. I will try another for
      loop.