in reply to I don't understand error message
Reads the next ResultI object from the stream and returns it. Certain driver modules may encounter entries in the stream that are either misformatted or that use syntax not yet understood by the driver. If such an incident is recoverable, e.g., by dismissing a feature of a feature table or some other non-mandatory part of an entry, the driver will issue a warning. In the case of a non-recoverable situation an exception will be thrown.If this function returns undef, it is likely (although the manual is silent about it) to indicate an "End-Of-File" or "End-of-Stream" situation rather than an error as errors will throw an exception.
It is a common idiom to wrap methods such as object->next_SOMETHING in a while-loop to automatically run through all results and finish when there are no more "next" things to process.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I don't understand error message
by lomSpace (Scribe) on Jun 16, 2009 at 20:50 UTC | |
by CountZero (Bishop) on Jun 17, 2009 at 09:26 UTC | |
by lomSpace (Scribe) on Jun 17, 2009 at 16:00 UTC | |
by CountZero (Bishop) on Jun 17, 2009 at 18:21 UTC |