>>>>> "Matt" == Matt Fuerst <[EMAIL PROTECTED]> writes:
Matt> How do I execute a shell command in perl? With the backtick operator: $result = `ls`; Matt> Also I want to check the return status of the shell command, Matt> can I just assign a variable to it and check to see the value Matt> of the variable once the command is complete? Sort of. The backtick operator returns the output of the process, rather than a return code. For that, we have the system() function. $return_code = system('ls'); Hope this helps. perldoc -f system for more. - Chris. -- $a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a As to luck, there's the old miners' proverb: Gold is where you find it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]