Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Combining variables to create a single virtual variable

by sundialsvc4 (Abbot)
on Sep 21, 2012 at 12:59 UTC ( #994896=note: print w/replies, xml ) Need Help??


in reply to Combining variables to create a single virtual variable

Another perhaps even-more-obvious way to present it would be to make one or more correspondings lists of letter-tag names, then iterate through that list making interpolations to build up the SQL string.   (Variable-names only, of course ... from a known fixed list, of course ...)   If there is a natural symmetry that you want to emphasize to the next reader of the source code, which of course is a very desirable thing to do, then I think that this would be a “clean and obvious” way to do that.

  • Comment on Re: Combining variables to create a single virtual variable

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994896]
help
Chatterbox?
[shmem]: LanX: ah, that one. You'll get the bug reports also :P
[Discipulus]: upvote me! i'll make pm great again! ;=)
[shmem]: Discipulus reminds me of an irish saying: "I would guess a tomorrow can wait 'til this day is done" :-)
[LanX]: nite! :)
[Discipulus]: or a spanish one: ' qui mucho se despide no quiere despedirse'

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-04-29 22:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.