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.
In reply to Re: Passing arguments from a different directory.
by choroba
in thread Passing arguments from a different directory.
by subr01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |