From:                   Joe Raube <[EMAIL PROTECTED]>
> I have a file that contains, among other things, SQL that is
> bracketed by BEGINSQL and ENDSQL.
> 
> I have written perl code that parses this out and executes it, and it
> is working for 99% of the cases.
> 
> I am getting some SQL though that spans multiple lines.
> 
> How can I parse out this case?

What about stripping out the newlines:

        s/\r?\n/ /g;

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to