in reply to Re^4: perl DBI special variable problem
in thread perl DBI special variable problem
How much effort is it to do this?
That assumes all your perl script files have a ".pl" extenstion; if that's not the case, just create a simple plain-text list of the names of the script files to be edited, and do it like this:perl -i.bak -pe 's/(\$ora_errstr="";)/\# $1/' *.pl
(xargs is a standard unix tool; it you're using ms-windows, just get one of the windows ports of unix tools)xargs perl -i.bak -pe 's/(\$ora_errstr="";)/\# $1/' < file.list
Of course, it sounds like a more profound rewrite might be in order, to get away from the old oraperl paradigm, but just removing the offending line from your scripts might get things running well enough that stuff will work while you hammer out the next version of your code.
|
|---|