Execute a system command: Difference between revisions

(→‎[[C]]: Removed syntax highlighting)
Line 196:
'''Interpreter:''' [[Perl]]
 
Note the use of grave quotes (or back ticks) instead of "normal" single quotes or the qx() command.
my $results = `ls`;
my $results = qx(ls);
 
Back ticks as above returns the results, system as below does not.
system "ls";
 
==[[PHP]]==
Anonymous user