Hans Dieter Pearcey on 15 Oct 2003 18:05:04 -0400 |
On Wed, Oct 15, 2003 at 03:01:20PM -0700, James wrote: > > > real printf code: > > > > printf ("%-15s %-15s %-30s\n", > > $DCS_DB{"$i"}, $DB{"$i"}_NM, $DB{"$i"}_DIR); > > > > Thanks Doug, your email put me in the right direction. > Here is the *new* and improved printf: > > printf ("%-15s %-15s %-30s\n", > ${"DCS\_DB$i"}, ${"DB$i\_NM"}, ${"DB$i\_DIR"}); > > Now it works. I am still a little confused on when to > use double quotes, single quotes and the curley > braces. Someone has to say it, so I'll let it be Mr. Dominus: Why it's stupid to `use a variable as a variable name' http://perl.plover.com/varvarname.html hdp. - **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|