programming-examples/perl/String/Backquotes and command substitution.pl
2019-11-15 12:59:38 +01:00

6 lines
193 B
Perl

print "The date is ", 'date /T';
print "The date is 'date'", ".\n"; # Backquotes treated literally
$directory='cd';
print "\nThe current directory is $directory.";