programming-examples/perl/Datatype/Converting Strings to Numbers.pl

8 lines
170 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl
use warnings;
print"12 ABC" + 0, "\n";
print "Eleven to fly" + 0, "\n";
print "acB40" + 0, "\n";
print "-20 10" + 0, "\n";
print "0x30" + 0, "\n";