programming-examples/perl/String/Alternative Quotes qq, q, qw, qx.pl

6 lines
251 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
print qq/Hello\n/; # same as: print "Hello\n";
print q/He owes $5.00/; # same as: print 'He owes $5.00', "\n";
@states=qw( E T A L ); # same as ("E", "T", "A","L")
$today = qx(date); # same as $today = 'date';