in reply to Re: code for serching .txt file through directories and sub directories
in thread code for serching .txt file through directories and sub directories

"Consider initializing @files outside of your if condition".

Indeed. And pushing to it rather than assigning to it.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re^2: code for serching .txt file through directories and sub directories