Dear list,

Is that someone could take a look at this problem ?

Thanks a lot,

--
-------------------
Dr. Mohamed Houssni


--- Begin Message ---
Dear list,

I am writing to you about a problem "perl -pi". I'm trying to replace a string by another which contains the caracter array declaration "@" ie substitute "blabla" with "\if@longtable" but I can not do it via "perl -pi -e". Below my command line

perl -pi -e 's/\\\\begin{document}/\\\\makeatletter\n\\\\AtEndDocument{\\\\if\@longauth\\\\\@longauthfalse\\\\fi}\n\\\\makeatother\n\n\\\\begin{document}/g' test.tex

To insert in "test.tex"

\makeatletter
\AtEndDocument{\if@longauth\@longauthfalse\fi}
\makeatother

Thank you in advance for your help.

--
-------------------
Dr. Mohamed Houssni





--- End Message ---
-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/

Reply via email to