Using "system" command you can execute only the commands and you cannot get the return value from them. For this requirement you have to use the backtick operator "``" in your code. Try to avoid this type of programming. Because this functions make your code a OS dependent. Next time you need to change your coding when you export your code for another OS. Always try to use the existing functionalities in perl. That also works speed than the "system" commands.
In reply to Re: Need to display output from shell
by vennirajan
in thread Need to display output from shell
by ramaks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |