polka4ever
Technical User
Hello, I would like to run a count of rows on a flat file. From a unix prompt, i would just type wc -l, right? but I want to do this within a perl script.
So - how do i get this to execute? I am a brand new perl user. I tried this:
$line = "wc -l test.txt";
print "$line\n";
But that literally prints out the $line.
Pls help!
So - how do i get this to execute? I am a brand new perl user. I tried this:
$line = "wc -l test.txt";
print "$line\n";
But that literally prints out the $line.
Pls help!