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 |
dummies
Source:http://www.dummies.com/how-to/content/special-characters-in-perl.html
No comments:
Post a Comment