Hi Alex,

Indeed looking at the script.... it should be possible to use it as Vipin indicated.
However, for xml validity I wouldn't use the 'naked' > or < signs but use &gt; instead.


Thanks for pointing it.
 
I am curious though on the script. Is it part of a larger script? Don't see any ARGs being read from command line.... but maybe my lack of knowledge.. ;P
 
Alex


I think there is a standard-in present inside the subroutine, as follows:

sub process_diff {

while(defined ($diff_line = <>))
.....
}

regards, Vipin