in reply to
Re^2: how to open all file one by one
in thread how to open all file one by one
I advise you to do some reading of documents (perlintro might be a good place to start); to study some of the relevant tutorials here; to use bigG or Super Search to find threads dealing with similar question; and most especially. to do some work on your own. Then ask again, if you get stuck with an honest effort.
This is NOT a freee code-writing service.
PerlMonks exists to help you learn.
If you didn't program your executable by toggling in binary, it wasn't really programming!