Hi
I need to store a command or a command combination to an Perl Variable, and then execute it in perl,
how to do that ?
I tried to put ls /etc/ tp $com and then store the result to $h but it did not wok.
the most importent part for me is the first row "$com=`ls /etc/`;" but it seams to be the wrong way to do it. please help
$com=`ls /etc/`;
$h=`$com`;
print $h;
I need to store a command or a command combination to an Perl Variable, and then execute it in perl,
how to do that ?
I tried to put ls /etc/ tp $com and then store the result to $h but it did not wok.
the most importent part for me is the first row "$com=`ls /etc/`;" but it seams to be the wrong way to do it. please help
$com=`ls /etc/`;
$h=`$com`;
print $h;
Comment