On Thu, 11 Oct 2001, Camilo Gonzalez wrote: > Dude, assign it to a variable. > > $tempdir = system("ls -l /tmp")
No, that only gives you the exit status of the called program (which you then need to divide by 256 to do anything useful with). using `` or qx() will give the output of the called program. Here's the pertinent info from the perldoc: The return value is the exit status of the program as returned by the "wait" call. To get the actual exit value divide by 256. See also the exec entry elsewhere in this document. This is not what you want to use to capture the output from a command, for that you should use merely backticks or "qx//", as described in the section on "`STRING`" in the perlop manpage. Return value of -1 indicates a failure to start the program (inspect $! for the reason). -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Use an accordion. Go to jail. -- KFOG, San Francisco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]