in reply to Re: improve performance
in thread improve performance

Thanks Corion. I added few prints and used executed the script using -d option. which clearly shows that this is where the performance bottelneck is.

you said if $strfile contains regex meta charachters my code will not will not work as i might have thought... file name has "." before the extension of file. is this statement is valid even if i use hash?

Replies are listed 'Best First'.
Re^3: improve performance
by marto (Cardinal) on Jun 08, 2015 at 10:25 UTC

    You may want to take a look at Devel::NYTProf for profiling your code.