http://www.perlmonks.org?node_id=780419


in reply to Re: STDIN help for a new Perl coder
in thread STDIN help for a new Perl coder

Thank you for the advice... I forgot about declaring the @files but will do so. I also was not aware of the linebreak being stored... I did not know Perl did this. I will look into the chomp command.

I will also add the system error message to the chdir line to give the message like you suggest.