I am new to perl. I am using a script, squirrel.pl for running database scripts automatically. It works fine on my linux box, but does not run on windows, and I need it to. I saw some general guidelines for making portable scripts, but this one is over 800 lines long. I am assuming that file paths with back slashes should be converted to forward slashes, but I cannot always tell where backslashes should remain as backslashes. For instance:
I assume all of these need to be converted
$sqlLog = "/opt/devOps/tools/squirrel/logs/squirrel-sql-" . $creationTime . ".log";. ,
but not sure about these:
if($chosenRealm=~/^prd$/ && !@ARGV)
or these:
elsif($connectionNames[$i]=~/4b/)
or these:
elsif($output=~/ORA-01031/ || $output=~/ORA-00942/ || $output=~/ORA-01749/)
Any insights are greatly appreciated. Thank youIn reply to script running on linux but not windows by thadc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |