Context problem. Change the relevant line to:
my $name = seekName($id);Alternate solution: return an array from your subroutine:
return ($line); Update: added the second alternate solution.In reply to Re^3: Return Value from sub
by Laurent_R
in thread Return Value from sub
by Dr Manhattan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |