Hi All,
I managed to find the mistake i was doing..U guys have been very very helpful.. i missed out the .
if ($_ =~ m/^dump.*txt$/) in the if statement. So i guess the script was looking for a file starting with dump and ending with txt. but now its working fine..
Thanks a lot.. you guys rock..
will be back for more... :)