|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Scalar joining, concatenation, involving varying textby ikegami (Patriarch) |
| on Jun 27, 2005 at 16:17 UTC ( [id://470373]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If everything was in a hash, it would be easier:
There are two alternatives to using hashes. 1) Mucking around with the symbol table. This won't work if $a, $b, etc are lexical (my) variables.
2) Using eval. This is slow and risky.
Update: Added grep to every snippet to fix the bug crenz pointed out. Here's the above without using map+grep:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||