in reply to Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ^]/

/[^\@aminos]/

Update: Here is the node, as it was when I replied to it:

Hi Monks,
Im getting this error when running my script and i donīt know why

Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ^]/ <br/>
this is the fragment of the code where the error occurs
if( "$substr1$substr2" =~ /[^@aminos]/ )


any ideas?

- tye        

Replies are listed 'Best First'.
Re^2: Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ^]/ (\@)
by madM (Beadle) on Apr 29, 2014 at 00:35 UTC
    why? can you explain?