in reply to Re: pattern matching
in thread pattern matching

Probably he wants =~ s/[^\w.]*$//; because
$ perl -le print(chr(0)) |cat -v ^@