Thanks Juerd, George and Derby for your input! Well I guess it's everyone's guess that I'm practically a newbie not only in Perl but also in programming in general. Really appreciate you guys' feedback and will bear in mind what you have said here. This is really a treasure trove of resources here, it's hard to believe sucha site exists. Keep up the good work!
And oh, just a last note to say that I've got my little program up there running as I want it - I guess it's one long and arduous way around the problem but I'm running short on time and just hoping that my solution oughta do the job (though I'm sure it doesnt epitomise good programming and efficiency ;)
Thanks once again!