programming-examples/perl/String/A single q creates a single-quoted string.pl

6 lines
150 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#If your data already have quotes, you can use 'q' operators to create strings with quotes.
$var = q('Single-quoted string.');
print "$var\n";