There's more than one way to do things | |
PerlMonks |
Re: Eval/package questionby shmem (Chancellor) |
on Jan 21, 2020 at 14:26 UTC ( [id://11111682]=note: print w/replies, xml ) | Need Help?? |
What is wrong? Why does the eval somehow access my hash, but does not add the value? Is it something obvious and I'm just blind today? It does access the hash and puts this slots value on the LHS, not the hash slot accessing expression. So yes, you're being blind :-)
Had you checked $@ after the eval, you would have seen that it contains
since the LHS of the assignment is empty.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|