Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Regex delimiter

by lidden (Curate)
on Jun 26, 2007 at 21:55 UTC ( [id://623494] : note . print w/replies, xml ) Need Help??


in reply to Re: Regex delimiter
in thread Regex delimiter

Changing your code to:
perl -wle 'for (0 .. 255) { $delim = chr; next if $delim =~ /\w/; eval "m${delim}foo$delim;"; print "Bad: $_ ($delim)" if $@ }'
Makes '.' and ';' pass too. I also have no problem with '_'.