polka4ever
Technical User
hello,
i would like to load a system command into a variable. The system command is: system "ps -ef | grep java3 | egrep -v grep | awk '{print $2}'";
I'm guessing the way I would do this is:
my $proc = system "ps -ef | grep java3 | egrep -v grep | awk '{print $2}'";
But i have a question though! I'm very new to Perl, and not really an experienced programmer. Do I "HAVE" to use "my" - what does "my" mean? also - am I doing this correctly above?
~p4e
i would like to load a system command into a variable. The system command is: system "ps -ef | grep java3 | egrep -v grep | awk '{print $2}'";
I'm guessing the way I would do this is:
my $proc = system "ps -ef | grep java3 | egrep -v grep | awk '{print $2}'";
But i have a question though! I'm very new to Perl, and not really an experienced programmer. Do I "HAVE" to use "my" - what does "my" mean? also - am I doing this correctly above?
~p4e