use warnings; use strict; use v5.10; say foreach glob("\d{6}*"); __END__ Unrecognized escape \d passed through at globmeta.pl line 5. d60000000000b.txt d600.txt