I might have seen it if I'd have found this post ....doh.
Just incase you were wondering why.....
Single quotes stop scalars/hashes/arrays etc....being interpreted.
So....
my $var = 'HELLO';
print '$var';
....would print $var......but
print "$var";
....would print HELLO as would:
print $var;
It's the same with hashes.....
%hash = (HELLO => 'GOODBYE');
$hash{$var} would print GOODBYE, but $hash{'$var'} would not exist so it would print nothing.
Just incase you were wondering why.....
Single quotes stop scalars/hashes/arrays etc....being interpreted.
So....
my $var = 'HELLO';
print '$var';
....would print $var......but
print "$var";
....would print HELLO as would:
print $var;
It's the same with hashes.....
%hash = (HELLO => 'GOODBYE');
$hash{$var} would print GOODBYE, but $hash{'$var'} would not exist so it would print nothing.