http://qs321.pair.com?node_id=11118362


in reply to Re^2: Efficient way to verify scalar contents
in thread Efficient way to verify scalar contents

I'm not sure. I remember [a-z] depending on locale, but it was probably in bash rather than Perl...
$ (LC_ALL=en_US.UTF-8; [[ =~ [a-z] ]] || echo no) $ (LC_ALL=C; [[ =~ [a-z] ]] || echo no) no $ perl -Mutf8 -wE 'say "" =~ /[[:lower:]]/' 1 $ perl -Mutf8 -wE 'say "" =~ /[a-z]/' $

Update: Switched from <c> to <pre> and back.

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