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
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Perl question
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- Date: Fri, 26 Sep 2014 15:59:16 +0100
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?
Yes: if (scalar @{ $ref_to_db_return } ) { ## code ## } -- Ian Stuart. Developer: ORI, RJ-Broker, and OpenDepot.org Bibliographics and Multimedia Service Delivery team, EDINA, The University of Edinburgh. http://edina.ac.uk/ This email was sent via the University of Edinburgh. The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
- References:
- [EP-tech] Perl question
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Perl question
- Prev by Date: [EP-tech] Perl question
- Next by Date: [EP-tech] Re: Perl question
- Previous by thread: [EP-tech] Perl question
- Next by thread: [EP-tech] Re: Perl question
- Index(es):