in reply to Unable to concatinate a Path to the array elements, which will have the values as return values from sunroutine

But your subroutine just prints the values instead of returning them, hence the (implicitly returned) "0". There are much more efficient ways of doing this, e.g.:

perl -ple '$_ = "/efsprod/docmnt/" . substr $_, 1, 8' Textfile.txt
  • Comment on Re: Unable to concatinate a Path to the array elements, which will have the values as return values from sunroutine
  • Download Code