Here's a simple perl script that demonstrates its use:
use warnings;
use strict;
use OracleTool qw(connect_db);
use OracleTool::UtlFile;
my $dbh = connect_db('username/password@database') or die;
my $f=OracleTool::UtlFile->fopen($dbh,'DIR','file.txt','r');
my $line;
while ($f -> get_line($line)) {
print "$line\n";
}
The code is on github: OracleTool.pm and UtlFile.pm.
No comments:
Post a Comment