in reply to Compilation error in the perl script

From my little experience, I think all your warnings should be gone if you carefully avoid multiple declaration of lexical variables:

$sPath

$sText

$now

To say it in general terms, you have declared "my $sPath" more than once in your code and if you declare each of above 3 variables only once, then warnings should be gone.

For the errors you have already got enough valuable advise.

  • Comment on Re: Compilation error in the perl script