On 11/1/06, jm <[EMAIL PROTECTED]> wrote:

i'm trying to build variables dynamically from data passed to a
subroutine.  i pass a text value (a field from a database) and want to
build an associated variable name by appending a prefix to the field
name ($oob_<fieldname>).

Perl allows you to do this. (Perl allows many things which may be
either clever or stupid depending upon context.) But to use a hash is
better in every way. This page explains in more detail:

   http://perl.plover.com/varvarname.html

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to