hash - Why doesn't Perl support interpolation of hashes in double quotes? -
hash - Why doesn't Perl support interpolation of hashes in double quotes? -
#!/usr/bin/perl utilize warnings; %hash=("no1"=>1, "no2"=>2, ); print %hash; #prints no11no22 print "%hash"; #prints %hash
why doesn't perl back upwards interpolation of hash within double quotes? supports interpolation scalars ($), arrays (@) why not hashes (%)?
how should hash stringify? scalars obvious , arrays too. should hash be? how useful such stringification be? more or less useful beingness able utilize % character unescaped in interpolating string? worth amount of work take prepare of code uses % in interpolated strings today?
if can come answers these questions, sure p5p willing hear them.
perl hash interpolation
Comments
Post a Comment