programming-examples/perl/String/Backquotes and command substitution.pl

6 lines
193 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
print "The date is ", 'date /T';
print "The date is 'date'", ".\n"; # Backquotes treated literally
$directory='cd';
print "\nThe current directory is $directory.";