String Literal Quoting
字串文字意味著沒有轉義或插值(引用字串終止符除外)
print 'This is a string literal\n'; # emits a literal \ and n to terminal
print 'This literal contains a \'postraphe '; # emits the ' but not its preceding \
你可以使用其他引用機制來避免衝突:
print q/This is is a literal \' <-- 2 characters /; # prints both \ and '
print q^This is is a literal \' <-- 2 characters ^; # also
某些選定的引用字元是平衡的
print q{ This is a literal and I contain { parens! } }; # prints inner { }