http://www.perlmonks.org?node_id=369724


in reply to Re: A philosophical pondering concerning hexes
in thread A philosophical pondering concerning hexes

I had not noticed previously that oct( "108" ) == 8 because oct( "10" ) == 8 and "108" =~ /^[0-7]+/. My initial thought on seeing 8 out of "108" was that oct() was returning some sort of nonsense value. I get it now that it is the same thing as oct( "10 foo" ).

Thanks.