develooper Front page | perl.beginners | Postings from February 2009

Re: Unmatched '

Thread Previous | Thread Next
John W. Krahn
February 23, 2009 15:35
Re: Unmatched '
Message ID:
Karyn wrote:
> Can someone else see why I am getting the following error, cause as far 
> as I can tell I have escaped all the ' single quotes.
> ganymede# perl -i.bak1 -p -e 
> 's/include(\'http:\/\/\/redcat\/nav.php\')\;/include(\'nav.php\')\;/ig' 
> *.php
> Unmatched '.
> ganymede# perl -v
> This is perl, v5.8.8 built for i386-freebsd-64int

As you can see, escaping them won't work, but this should:

perl -i.bak1 

Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About