"be consistent" | |
PerlMonks |
script running on linux but not windowsby thadc (Novice) |
on Dec 19, 2017 at 19:56 UTC ( [id://1205868]=perlquestion: print w/replies, xml ) | Need Help?? |
thadc has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
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 you
Back to
Seekers of Perl Wisdom
|
|