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)...
In reply to Re^3: Having trouble returning the correct values from my sub
by almut
in thread Having trouble returning the correct values from my sub
by lomSpace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |