Hi,
I have a general question about reporting.
Usually, my scripts perform text operations on large files, such as converting them from one format to another format.
I run checks as I go and I handle the errors. This all works fine, but I am now looking for a solution to report errors at the end of the script. Often, to report an error, I need to provide several strings (of course, often not the same lengths).
I was thinking of appending them to an @my_error array in a CSV format:
[red]
push @my_error , "value1,value2,value3";
push @my_error , "err1,err2,err3";
[/red]
I was hoping to use a standard module to print them out.
Is this the way to go? If it is, which module should I use?
Thanks,
Thierry
I have a general question about reporting.
Usually, my scripts perform text operations on large files, such as converting them from one format to another format.
I run checks as I go and I handle the errors. This all works fine, but I am now looking for a solution to report errors at the end of the script. Often, to report an error, I need to provide several strings (of course, often not the same lengths).
I was thinking of appending them to an @my_error array in a CSV format:
[red]
push @my_error , "value1,value2,value3";
push @my_error , "err1,err2,err3";
[/red]
I was hoping to use a standard module to print them out.
Is this the way to go? If it is, which module should I use?
Thanks,
Thierry