There's more than one way to do things | |
PerlMonks |
Re: redirect stream from wirte; to $stringby thezip (Vicar) |
on Jan 31, 2011 at 04:48 UTC ( [id://885196]=note: print w/replies, xml ) | Need Help?? |
sprintf and printf are your huckleberries... The first argument is the format specification, which is then followed by a list of variables that directly correspond to the "placeholders" specified in the format. For example,
This doesn't even begin to scratch the surface of what sprint and printf do, but it is a place to start. What can be asserted without proof can be dismissed without proof. - Christopher Hitchens
In Section
Seekers of Perl Wisdom
|
|