Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Keep It Simple, Stupid
 
PerlMonks  

Re^5: perl DBI special variable problem

by graff (Chancellor)
on Apr 08, 2006 at 04:03 UTC ( [id://542024]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^4: perl DBI special variable problem
in thread perl DBI special variable problem

We can remove those lines($ora_errstr="";) but it needs lot of effort.

How much effort is it to do this?

perl -i.bak -pe 's/(\$ora_errstr="";)/\# $1/' *.pl
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:
xargs perl -i.bak -pe 's/(\$ora_errstr="";)/\# $1/' < file.list
(xargs is a standard unix tool; it you're using ms-windows, just get one of the windows ports of unix tools)

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://542024]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.