can anyone explain this weird behavior?
alive but dead
dies at last line
alive but dead
dies at last line
Code:
my $db = DBI->install_driver('mysql')
or die;
my $ipplan = DBI->connect('DBI:mysql:host=[URL unfurl="true"]www;database=ipplan','xxxx','xxxxx')[/URL]
or die;
my $C = $ipplan->prepare("SELECT count(*),sum(if(lastpol > ?,1,0)) as recent FROM ipaddr WHERE baseindex = ?")
or die;
my $L = $ipplan->prepare("SELECT max(lastpol) FROM ipaddr WHERE baseindex = ?")
or die
my $B = $ipplan->prepare("SELECT * FROM base WHERE subnetsize > 1 ORDER BY baseaddr")
or die;
die unless $C && $L && $B ;