[EP-tech] Re: Perl question

sf2 sf2 at ecs.soton.ac.uk
Fri Sep 26 16:01:00 BST 2014


If possible, can you detail a little as to why you're using straight
sql? api missing to do something in particular? 

the error is that it's trying to deref an array but it got a string
instead of a array ref eg: 

my $string = ""; 

my @upcoming_error = @$string 


On 26.09.2014 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?
> The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.
> The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.
> Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.
> The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal [1].
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech [2]
> *** Archive: http://www.eprints.org/tech.php/ [3]
> *** EPrints community wiki: http://wiki.eprints.org/ [4]
> *** EPrints developers Forum: http://forum.eprints.org/ [5]


[1] http://www.lincoln.ac.uk/legal
[2] http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
[3] http://www.eprints.org/tech.php/
[4] http://wiki.eprints.org/
[5] http://forum.eprints.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20140926/f7f27aeb/attachment-0001.html 

More information about the Eprints-tech mailing list