Hi,
My code is accepting an option "version" as an integer. If it is less
than 100, i need to add a zero in front of it so that i can do the
further processing.
Although this code is working, i am not sure that its the proper way.
if ($version < 100)
{
# convert an integer-variable to string.
$version = sprintf("0%d",$version);
}
I dont want to use something like my $str = sprintf("0%d",$version); I
want to have it in the same variable "version".
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/