use Math::Fleximal; print Math::Fleximal->new( "2dd9f2ba1f924996fa231fdceb4c6f57", [0..9, 'a'..'f'] )->change_flex([0..9,'a'..'z','A'..'Z'])->to_str();