... what is the purpose of the array in the first line of mv_tmp_to_phone?
my ($src, $dest) = @_;
Taking the liberty of answering for kcott...
https://perldoc.perl.org/perlvar#@_
is the argument list passed to a subroutine. Assignment to lexicals allows "speaking" variable names to be used rather than $_[0] $_[1] as would otherwise be necessary. This assignment also defeats aliasing of the original argument variables used in the call to the subroutine, which avoids many subtle and sometimes perplexing side effects.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: how to move multiple files
by AnomalousMonk
in thread how to move multiple files
by ObiPanda
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |