in reply to Re^2: Inspect the members of a Posix Character Class
in thread Inspect the members of a Posix Character Class

> someone must have wanted to do that before?

What's your use case? Why do you need it?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^4: Inspect the members of a Posix Character Class
by NERDVANA (Pilgrim) on Jul 29, 2021 at 13:59 UTC
    I have a module that is basically an improved version of Data::Faker and I have a few character classes that were useful to me. Before I publish this on CPAN, I wanted to make the module a bit more generic to that other people are more likely to find it useful. To that end, I want people to be able to say "give me characters from this charset X". I am looking for the most efficient way to do that, so that I'm not tossing out some big bloated slow memory hog of a module.
Re^4: Inspect the members of a Posix Character Class
by NERDVANA (Pilgrim) on Aug 27, 2021 at 10:53 UTC