Re: A problem of searching through directories

2011-04-15 Thread Uri Guttman
> "LY" == Li Yi writes: LY> I have encounter a problem in which i need to scan over all the files LY> within a directory tree. My script is like the following before we get into your code, where are you learning perl? this is very old style perl. it is perl 4 to be exact which is very ve

A problem of searching through directories

2011-04-15 Thread Li Yi
I have encounter a problem in which i need to scan over all the files within a directory tree. My script is like the following #!/usr/bin/perl -w $d = "some directory here"; chop($d); &searchDirectory($d); sub searchDirectory { local($dir); local(@lines1); local($line); local($