Special Characters in Perl

Part of the Perl For Dummies Cheat Sheet

Like any programming language, Perl uses special commands for special characters, such as backspaces or vertical tabs. So, if you need to program in a bell or a beep or just a carriage return, check the following table for the character that will produce it:

Character Meaning
\n Newline
\r Carriage return
\t Tab character
\f Formfeed character
\b Backspace character
\v Vertical tab
\a Bell or beep
\e Escape character
  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus

Perl For Dummies Cheat Sheet


Inside Dummies.com