in reply to Passing a file into DBD-Oracle
Your file read loop is keeping only the last line of the file, is that what you want? You're trying to pass undef (the value of $record) to the prepare subroutine, which just won't work. If not, p Perhaps you'd do better with:
open (FILEDATA, "$sql"); my $record = join("",<FILEDATA>); close(FILEDATA); print $record;
...roboticus
When your only tool is a hammer, all problems look like your thumb.
Update: Struck out the incorrect statement (nice catch, bart!) and added the bit between them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing a file into DBD-Oracle
by bart (Canon) on Feb 11, 2011 at 21:29 UTC | |
by TJRandall (Sexton) on Feb 11, 2011 at 22:07 UTC | |
by bart (Canon) on Feb 11, 2011 at 22:54 UTC |