Hi All (again)!

   I have another question. How I can create a incremental var's name ?

  Ex:

   Read "n" numbers and create a var with the name terminate with the
sequence number in a loop:

$n = 4;

while ($num ne $n) {

     create the "numbered var ";
     $num++;
}

in this example, the program create 4 vars:

$varname1 = "x"
$varname2 = "x"
$varname3 = "x"
$varname4 = "x"

Obs: the "n" number is variable.

Thank's.

Márcio Oliveira
LPIC-1
Analista de Suporte Pleno

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to