[Israel.pm] Using variables

Gabor Szabo szabgab at gmail.com
Tue Jan 6 07:55:07 PST 2009


On Tue, Jan 6, 2009 at 5:33 PM, Chanan Berler <chananb at centerity.com> wrote:
> Hello All,
>
> I have the following prog:
>
> my $digit = 1;
> my $var1 = 100;
> my $var2 = 200;
>
> And I need to print $var1, $var2 - but using the $digit concatenated with
> the word 'var'.
> Can anyone help me? Suppose to be an easy task - but I got a blackout ..wow

I did not understand. Could you show us what would be the expected
output int the
case you showed us?

Gabor



More information about the Perl mailing list