Hi,
Is there a way to execute a system command and read the output through a while loop using the back tick.
Normally I excute a command like this.
ie
System("ls > ls.txt"
open RI,"<ls.txt" || die "can't open ls.txt: $!\n";
while(.....)
{
print("$line\n"
}
thanks
Is there a way to execute a system command and read the output through a while loop using the back tick.
Normally I excute a command like this.
ie
System("ls > ls.txt"
open RI,"<ls.txt" || die "can't open ls.txt: $!\n";
while(.....)
{
print("$line\n"
}
thanks