in reply to Re^3: how could i insert data from a file to oracle database
in thread how could i insert data from a file to oracle database
{ local $/; open SQLFILE, "< file.sql" or die "Can't open file.sql: $!"; $stmts = <SQLFILE>; close SQLFILE; }
you could do
my $stmts = do { local $/; open my $sqlFH, q{<}, q{file.sql} or die qq{open: file.sql: $!\ +n}; <$sqlFH>; };
I hope this is of interest.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: how could i insert data from a file to oracle database
by koleti (Novice) on Nov 13, 2007 at 16:40 UTC | |
by tuxz0r (Pilgrim) on Nov 13, 2007 at 19:31 UTC | |
by koleti (Novice) on Nov 13, 2007 at 21:03 UTC | |
by tuxz0r (Pilgrim) on Nov 13, 2007 at 21:33 UTC |