$ perl -Mcharnames=:full -le'print "\N{BENGALI DIGIT ZERO}" =~ /^\d\z/ || 0' 1 #### $ perl -le'print chr(0x09E6) =~ /^\d\z/ || 0' 1