Arrays in list content get treated as one list. You should return list references instead:
return (\@direc_temp,\@files_temp,\@dest_temp);
And then either dereference them or access them as references at the other end of the return.
See perldoc perlreftut for more.
In reply to Re: Subroutine Return Problem
by dorward
in thread Subroutine Return Problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |