in reply to Re^5: Declaring and checking content of variables with consecutive names
in thread Declaring and checking content of variables with consecutive names

Thank you again, hippo. Your code is exactly what I should have written in my reply, instead of merely describing my intentions. I used the word "discouraged" because I understood it is alway considered bad practice to put the name of a variable (i.e. the filename) into another variable.
  • Comment on Re^6: Declaring and checking content of variables with consecutive names

Replies are listed 'Best First'.
Re^7: Declaring and checking content of variables with consecutive names
by hippo (Archbishop) on Sep 29, 2016 at 10:41 UTC
Re^7: Declaring and checking content of variables with consecutive names
by choroba (Cardinal) on Sep 29, 2016 at 16:37 UTC
    > it is always considered bad practice to put the name of a variable (i.e. the filename) into another variable

    Yes, it is, but in this case, we're putting the value of a variable into another variable, which is OK and practical.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,