>I'm trying to loop through a list of variables and print their values. 
>e.g., print $name, $age, $phone.
>
>What's the best way to do this? I've tried
>
>       foreach (qw(name age phone)) {
>               print ${$_};
>       }
>
>....but that doesn't seem to work.

It works for me (using perl 5.6.1), what seems to be the problem?  

Why do you want to do this instead of just having three print statements?

Are you sure that you have data in the thre variables?

                                /\/\ark

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to