in reply to system "gzip $full_name" is taking more time
G'day dushyant,
You say "system "gzip $full_name" is taking more time." but you don't say more time than what. More time than some other compression program? More than the same command from the command line? More time than it took last week?
Your code shows nothing to indicate how you are measuring this time. How are you doing this?
You've provided no indication of how big your files are. Perhaps 2 hours is perfectly reasonable for individually compressing 90,000 of your files.
I suggest you do a comparison of the times taken to compress a representative file from the command line (e.g. time gzip filename) and from a Perl script (Time::HiRes might be useful here). If you do find a distinct difference, show us how you did the timings and what the results were.
A few other points regarding your code:
-- Ken
|
|---|