EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #00831
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Random question: Eprint core fields
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Random question: Eprint core fields
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- Date: Wed, 04 Jul 2012 15:36:30 +0100
On 04/07/12 11:49, John Salter wrote:
Also (if I put my pedant hat on, so feel free to ignore!), there's inconsistent use of quotes in that file: { name=>"contact_email", type=>"email", required=>0, can_clone=>0 }, VS. { 'name' => 'sword_depositor', 'type' => 'itemref', datasetid=>"user" },
Perl knows that hash keys must be scalars, therefore assumes quotes. Perl hash keys can be numeric scalars or string scalars, perl doesn't care.I also notice variation in the use of quotes within the same declaration, and with the use of single- verses double-quotes on values :)
Just goes to show how rich and helpful Perl is.... by not falling over on the inconsequentials ;-)
-- 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.
- Follow-Ups:
- [EP-tech] Re: Random question: Eprint core fields
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Random question: Eprint core fields
- References:
- [EP-tech] Random question: Eprint core fields
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Random question: Eprint core fields
- Prev by Date: [EP-tech] Re: informal eprints development workshop
- Next by Date: [EP-tech] Re: Random question: Eprint core fields
- Previous by thread: [EP-tech] Random question: Eprint core fields
- Next by thread: [EP-tech] Re: Random question: Eprint core fields
- Index(es):