Steve Bertrand wrote:
I could have also used s/0//, but I knew no better then.
s/^0//;
Also:
use Scalar::Util qw{ looks_like_number };
$num += 0 if looks_like_number( $num );
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
I like Perl; it's the only language where you can bless your
thingy.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
