box-o-sand/PracticingPerl/cli/quoting.pl

35 lines
444 B
Perl
Raw Normal View History

2011-01-06 02:32:20 +00:00
#!/usr/bin/env perl
use strict;
use warnings;
print qq{I said "They're the most delicious fruits!".\n};
print q/I said "They're the most delicious fruits!"./ . "\n";
print <<OUTPUT
I said "They're the most delicious fruits!".
OUTPUT
;
my $one = 'mangoes';
print "I like $one.\n";
print 'I like $one.' . "\n";
print qq/I love $one.\n/;
print q#I love $one.# . "\n";
print <<OUT
I <3 $one
OUT
;
print <<'OUT'
I <3 $one
OUT
;
1;
__END__