EPrints Technical Mailing List Archive

Message: #00835


< 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


On 04/07/12 15:45, Sebastien Francois wrote:
Single quotes won't extrapolate a variable (and characters such as \n,
\r) while double quotes will:

my $var1 = 'hello';
my $var2 = '$var1 world';
my $var3 = "$var1 world";

print $var2;    # will print <$var1 world>
print $var3;    # will print <hello world>

True....

$hash{$key} = $value is the same as $hash{"$key"} = $value, but very different from $hash{'$key'} = '$value' :)



--

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.