Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Using the Variable Name from an Arrayby shmem (Chancellor) |
on Nov 14, 2019 at 17:13 UTC ( [id://11108683]=note: print w/replies, xml ) | Need Help?? |
Getting @ the variable_name inside of the array is what I can not remember how to do. You don't have a variable_name inside of the array available by assignment. You have the values of the variables. If you want to access the values by name, do so using a hash:
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|