Sunday 22 December 2013

System vs Exec vs Backticks - Perl

In Perl, the main difference between system, exec and backtick is what happens during the compile time.

Just to refresh your memory, the backtick symbol ( ` ) is on the button above tab button.

Here's the comparison:



SystemExecBacktick
System returns a value after a command is run, irrespective of whether the command executed successfully or failed. Exec does not return a value. Backtick is used to capture the output of a command.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker