Perl Monk, Perl Meditation | |
PerlMonks |
Re: adding value to hashby shmem (Chancellor) |
on Sep 05, 2019 at 13:17 UTC ( [id://11105659]=note: print w/replies, xml ) | Need Help?? |
and this works No, this not works:
Why? cuz $data (SCALAR, may hold an anonymous hash) and %data (HASH) are different variables. Read the perldata manual page. Seriously: Read perldata. update: Reading perldata is not a waste of time. It saves you a lot of puzzling and doubts for time to come. Not reading it in turn wastes your and our time.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|