I don't think one needs use POSIX, at least with the more recent versions of perl; e.g. with v5.8.4:
#!perl -l use strict; use warnings; my $s = 'a1b2c3'; print for $s =~ /[[:alpha:]]/g; print for $s =~ /[[:digit:]]/g; __END__ a b c 1 2 3
the lowliest monk
In reply to Re^2: negating POSIX regexp classes doesn't work as expected
by tlm
in thread negating POSIX regexp classes doesn't work as expected
by cazz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |