in reply to Passing arguments from a different directory.

Passing a file path is just passing a string:
sub get_path { my $path = shift; # Retrieve the argument. print STDERR "DEBUG: Got '$path'"; # Show you got it correctly. } get_path('a/bcd/sample/array.list'); # Pass the argument.

Or, did you mean something else? See How do I post a question effectively?, show us what you tried and how it failed.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ