Hi
subha,
I notice you are quite new to PerlMonks, welcome to the Monastery. That said please read the
PerlMonks FAQ and
How do I post a question effectively?. Using code tags makes it easier for people to read the code you have posted. Regards your Perl question, this seems to be based on one of the answers to your
previous question, which you have used to make two working scripts. Have you tried combining them into one file, the contents of the second script following the second?
Also, if these are the complete working scripts I see no
use strict; or
use warnings;, or even a shebang line.
Hope this helps
Martin