P
Perl Learner
hi there again
in my program, i am trying to check if gnuplot is installed on the
system
for that, i have been thinking of doing
system("which gnuplot")
and, depending on the output i get from it, find out whether or not it
is installed.
in linux, if the software isn't installed, the $status variable is set
to 1. but this isn't the same (atleast) on (these) Sun machines. so
now i can not rely on the $status variable.
so i want to take the output from the terminal and do some parsing.
but how do i get that output (when i do system("which gnuplot")) into
my perl program?
in my program, i am trying to check if gnuplot is installed on the
system
for that, i have been thinking of doing
system("which gnuplot")
and, depending on the output i get from it, find out whether or not it
is installed.
in linux, if the software isn't installed, the $status variable is set
to 1. but this isn't the same (atleast) on (these) Sun machines. so
now i can not rely on the $status variable.
so i want to take the output from the terminal and do some parsing.
but how do i get that output (when i do system("which gnuplot")) into
my perl program?