Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^7: Declaring and checking content of variables with consecutive names

by choroba (Bishop)
on Sep 29, 2016 at 16:37 UTC ( #1172941=note: print w/replies, xml ) Need Help??


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

> 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,
  • Comment on Re^7: Declaring and checking content of variables with consecutive names
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1172941]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2019-10-19 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?