in reply to Escape special characters for a LaTeX file

Welcome. You didn't say what's going wrong but changing

else{next;}

to

else { print "skipping : $_ :\n"; }

will give you a clue.

Replies are listed 'Best First'.
Re^2: Escape special characters for a LaTeX file
by Laurent_R (Canon) on Dec 14, 2014 at 10:34 UTC
    And BTW, the
    else{next;}
    statement is pretty much useless in this context, since the program would go to the next DATA record anyway.