Escape sequences and single/double quotes : Escape « String « Perl






Escape sequences and single/double quotes

   

print "This string contains \t\ttwo tabs and a newline.\n"; # Double quotes

print 'This string contains\t\ttwo tabs and a newline.\n; #Single quotes

   
    
    
  








Related examples in the same category

1.Escape character
2.Escape sequences in strings.
3.Print Escape Sequences
4.Output tab sign
5.\t = tab, \n = newline, \\ = backslash
6.Use tabs in print function
7.Backslash Escapes in Perl
8.Add new line character to string
9.Text Formatting