[EP-tech] Re: Perl question

Ian Stuart Ian.Stuart at ed.ac.uk
Fri Sep 26 15:59:16 BST 2014

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.

More information about the Eprints-tech mailing list