[EP-tech] Re: Random question: Eprint core fields

Ian Stuart Ian.Stuart at ed.ac.uk
Wed Jul 4 15:53:50 BST 2012


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.



More information about the Eprints-tech mailing list