EPrints Technical Mailing List Archive

Message: #03506

< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Perl question

On 26/09/14 15:40, Andrew Beeken wrote:
Hello all! I’m having a funny one in relation to some customisations
we’ve made to our EPrints installation. In particular I’m getting an
empty sql query returned within the Perl which is causing the user
page creation script to bail with this error: Can’t use (“”) as an
ARRAY ref while “strict” refs in use. I shan’t go into specifics, but
is there a recommended way of gracefully ignoring empty SQL returns?


  if (scalar @{ $ref_to_db_return } )
     ## code ##


Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
The University of Edinburgh.


This email was sent via the University of Edinburgh.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.