Re: sprintf format question

2008-06-05 Thread April
On Jun 4, 8:00 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > April wrote: > > sprintf( "%s%$Fmt%s", ("%$Fmt=|", $TestStr, "|")) > > > This is in Perl for Dummies, 4th ed, p160. > > > I'm trying to understand this ... > > > the first part, "%s%$Fmt%s", my understanding is the format part, > > which spe

Re: sprintf format question

2008-06-04 Thread Rob Dixon
April wrote: > sprintf( "%s%$Fmt%s", ("%$Fmt=|", $TestStr, "|")) > > This is in Perl for Dummies, 4th ed, p160. > > I'm trying to understand this ... > > the first part, "%s%$Fmt%s", my understanding is the format part, > which specifies the formats for the second part, thelist part, ("% > $Fmt=

sprintf format question

2008-06-04 Thread April
sprintf( "%s%$Fmt%s", ("%$Fmt=|", $TestStr, "|")) This is in Perl for Dummies, 4th ed, p160. I'm trying to understand this ... the first part, "%s%$Fmt%s", my understanding is the format part, which specifies the formats for the second part, thelist part, ("% $Fmt=|", $TestStr, "|"): %s for "%$F