in reply to Re^2: system "gzip $full_name" is taking more time
in thread system "gzip $full_name" is taking more time

So I have to make another system call for removing original file

You mention that you are aware of perl's unlink.

But better use the move command from File::Copy that ships with every perl.

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)