LameNerd has asked for the wisdom of the Perl Monks concerning the following question:
Some of the packages have comipler errors in them.foreach my $invalidPackage ( @invalidPackages ) { my $compCmd = <<SQL; ALTER PACKAGE $dbuser.$invalidPackage COMPILE DEBUG BODY SQL print "Executing $compCmd"; $sth = $dbh->prepare($compCmd) or die $ARGV[0] . "[$compCmd] " . $dbh->errstr; $sth->execute(); while ( my @r = $sth->fetchrow_array ) { print ">>>@r"; } $sth->finish || die; }
print ">>>@r";I am wrong. What should I have done?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get ouput from alter package statement.
by steves (Curate) on Feb 03, 2003 at 19:14 UTC | |
|
Re: Get ouput from alter package statement.
by CountZero (Bishop) on Feb 03, 2003 at 19:26 UTC |