Hi all, I have little formatting problem, we have code:
sub test { $sth = $dbh->prepare_cached(<<SQL); INSERT INTO table (ip, port, type, create_date) VALUES (?,?,?,?) SQL $sth->execute('12.12.12.12', 80, proxy, '2002-12-12'); $sth->finish; return; } this of course doesn't work, because SQL is not at begining of the line. I tried: $sth = $dbh->prepare_cached(<<" SQL"); and that works. But could I use regexp for that? something like this: $sth = $dbh->prepare_cached(<<\s*SQL); it is just cosmetic question, but i'd like to know answer.... /brano -=x=- Skontrolované antivírovým programom NOD32 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>