On Thu, 22 Jan 2009 06:21:32 -0800 (PST)
melbou...@gmail.com wrote:

> I have a Perl script that I run and the out come as showing below:
> 
>   Reading: server 1\08121100.mls
> Log chain 2:
>   Reading: server 2\08120700.mls
>   Reading: server 2\08120900.mls
>   Reading: server 2\08121100.mls
> Log chain 3:
>   Reading: server 3\08120700.mls
>   Reading: server 3\08120900.mls
>   Reading: server 3\08121100.mls
> ================================
> # Successful Syncs:    2535
> # Failed Syncs:          34
> ================================
> Total:                 2569
> 
> Average Sync Time:    22.05 sec
> 
> However, it’s only on print screen and I would like to do the
> following:
> 1.    Save it as an excel file
> 2.    Access another file let’s call it Mark in the path
> (C:\Mark.xls) with error codes to show me the Failed Syncs errors.
> I’m very new on this Perl scripting please help on it






For starters you may wish to read the documentation for print

#  perldoc -f print

Next you might want to think about what you really want to do, perhaps
an output that can be opened by excel and then saved in excel format

Lastly, you will need to make a table of errors that can be looked up,
a hash table perhaps? 

# perldoc -q hash should prove informative reading

As you have not shown any code,  it maybe best for you to try
modifiying the script, and if you have any failures, report them when
seeking further help



Owen

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to