Wilson, Douglas on 15 Oct 2003 17:38:50 -0400 |
> for ($i = 1; $i <= 6; $i++) { > printf("$some_var$i"); > printf("$some$i_var"); > } You need to use "{}" braces to delimit the variable name: printf("${some_var}$i"); printf("${some}${i}_var"); # ??? just guessing at what you wanted > printf ("%-15s %-15s %-30s\n", > $DCS_DB{"$i"}, $DB{"$i"}_NM, $DB{"$i"}_DIR); You don't need to put quotes around $i when it's the only thing inside quotes. HTH, Douglas Wilson - **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|