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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Matching @ in string
by lima1 (Curate) on Nov 22, 2007 at 13:34 UTC |
In Section
Seekers of Perl Wisdom