in reply to quotation mark as key
Yes, but your hash assignment and scalar constant are wrong.
Any characters can be used in keys, but the scalar constants must be quoted/escaped properly when using one to assign the key.use strict; use warnings; use Data::Dumper; my $hash = {"\"" => 1,':'=>2}; print Dumper($hash);
|
|---|