Frank,
I can't see it in emacs.
What do you mean by "dump the last line of the file in binary"?
Sounds like something I need to learn about.
John
Frank Bax wrote:
At 02:30 AM 12/13/05, john wrote:
I'm attempting to loop thru an input file, executing a SELECT query
with the value from each line.
The script works for the first iteration, and then gives these error
messages:
DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at
./describe_skus.pl line 27, <INFILE> line 2190.
Use of uninitialized value in print at ./describe_skus.pl line 27,
<INFILE> line 2190.
Use of uninitialized value in print at ./describe_skus.pl line 27,
<INFILE> line 2190.
Use of uninitialized value in print at ./describe_skus.pl line 27,
<INFILE> line 2190.
Use of uninitialized value in print at ./describe_skus.pl line 27,
<INFILE> line 2190.
(INFILE line 2190 is the last line.)
Are you saying your input file contains 2190 lines? If so, dump the
last line of the file in binary - my guess is that the last character
in the file is Ctrl-Z - an EOF marker on some systems; and that it
follows a newline.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>