LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Script check (https://www.linuxquestions.org/questions/programming-9/script-check-265404/)

Echo Kilo 12-11-2004 09:44 PM

$return_value
 
Hello, I'm learning Perl. Is this the write place?

If so, what is the meaning of $return_value below?

#!/usr/bin/perl
$return_value = system("df");
print "System returned $return_value\n";

acid_kewpie 12-12-2004 04:43 AM

it's the exit code of the system call. 0 = success > 0 = error or some sort normally

XavierP 12-12-2004 05:02 PM

Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.

Echo Kilo 12-12-2004 11:06 PM

HI again, I was wondering if I could get some elaboration on its meaning and purpose.

acid_kewpie 12-13-2004 03:55 AM

not sure what else there is to say.... it runs a shell command through system() and then tells you the exit code...


All times are GMT -5. The time now is 08:12 PM.