> any ideas?
not really, cause it does what you told it to do...
DB<101> @a = 'a'..'d'
=> ("a", "b", "c", "d")
DB<102> 'c' =~ /[^@a]/
DB<103> 'c' =~ /[@a]/
=> 1
DB<104> $re=qr/[^@a]/
=> qr/[^a b c d]/
... but wrongly, please note that whitespace is now excluded too!
Apparently you're not showing the whole code.
Are you sure about the content of @aminos?
And why do you exclude 23 letters of the alphabet (in random order) instead of matching the remaining 3?
edit
your array @aminos is empty, thats why /[^]/ tries to exclude ']' within an unterminated character class.
Cheers Rolf
( addicted to the Perl Programming Language)
|