programming-examples/perl/String/A single q creates a single-quoted string.pl
2019-11-15 12:59:38 +01:00

6 lines
150 B
Perl

#If your data already have quotes, you can use 'q' operators to create strings with quotes.
$var = q('Single-quoted string.');
print "$var\n";