> What is the difference. The only I see is that printf can 

One difference is printf prints it's output and sprintf returns it';s value.

printf ...
my $formatted_goodies = sprintf ...

> take a filehandle? But what use would that be. 
> 

To format the contents of it. For instance, you might have a user enter a dollar 
amount from the command line.
If you could printf STDIN the you could make sure 123.4567890 came out as $123.46

Just one quick idea..

DMuey

>  Paul Kraus

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to