Having never used or even seen Perl, I just installed Active Perl 5.8 on my Win2K machine and have gotten as far as the PPM> prompt. How do I create a script in this environment?
Specifically, I want to create a script that simply returns the total # of entries and then averages the file size from a list of files contained in a file named 'files.txt'. This text file contains a hundred or so entries of files listed in the following format:
11/01/2003 04:42 PM 38124 c2ph.bat
06/03/2002 03:01 AM 5484 config.pl
11/07/2002 10:09 PM 1338 configPPM.pl
.
.
.
The third column is the file size that I need to average. How do I best approach this task???
Thanks in advance...sjv
________
S. Joseph Vergara
sjvergara@satx.rr.com
Specifically, I want to create a script that simply returns the total # of entries and then averages the file size from a list of files contained in a file named 'files.txt'. This text file contains a hundred or so entries of files listed in the following format:
11/01/2003 04:42 PM 38124 c2ph.bat
06/03/2002 03:01 AM 5484 config.pl
11/07/2002 10:09 PM 1338 configPPM.pl
.
.
.
The third column is the file size that I need to average. How do I best approach this task???
Thanks in advance...sjv
________
S. Joseph Vergara
sjvergara@satx.rr.com