http://qs321.pair.com?node_id=652366


in reply to Re: Matching @ in string
in thread Matching @ in string

*cough*

$ perl -e 'if (\'h@t\' =~ /(\@)/ ) { print $1 }' -bash: syntax error near unexpected token `('

Not sure why - does escaping the single quote not work?