Hi,
I have a perl script which is used to calculate the amount of code churn in perforce (a type of code change contol system);
The system uses the command line to output commands and then grep the results to get the appropiate data.
There is one line however which really confuses me
Its this:
$numlines = `p4 print $filename#$revChglistTable{$filename} | wc -l`;
chomp($numlines);
I am not sure what the | wc -1 part and the chomp() does. the
p4 print $filename#$revChglistTable{$filename}
Part is the command output, so you dont really need to worry about that. The question I need answered is:
|
wc -1
Is this a perl thing? What does it do? Whenever I run the script I get the following debug message in command prompt:
'wc' is not recognized as an internal or external command,
operable program or batch file.
BTW I am using active perl on windows
Thanks!