James on 15 Oct 2003 17:31:50 -0400 |
Here is a snippet of what I am trying to do for ($i = 1; $i <= 6; $i++) { printf("$some_var$i"); printf("$some$i_var"); } I can't seem to be to have the $i resovle to a number from the for loop. NOTE: I do need to have the underscore in the variable name. Actually here is the real printf code: printf ("%-15s %-15s %-30s\n", $DCS_DB{"$i"}, $DB{"$i"}_NM, $DB{"$i"}_DIR); The above line is on one line despite how it looks in this email. Thanks in advance, James - **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|