How do I use sprintf() function in a perl script under Linux or UNIX?
A. perl printf() function is use to format and print data on screen. You need to use sprintf to print or store formatted data/string to a variable or to a string. Also note that Perl does its own sprintf formatting–it emulates the C function sprintf, but it doesn’t use it (except for floating-point numbers, and even then only the standard modifiers are allowed). As a result, any non-standard extensions in your local sprintf are not available from Perl.