I am working with xml files that I need to manipulate in my script. My first approach to this was:
qx(perl export_xml.pl $export_params > $path$prefix\investment.xml);
This works for testing, but unfortunately the real files are too large for that (up to 6 GB).
Is there a way to read a file line by line and then change the input through a file descriptor? Sort of
foreach (<DERI>) { #@derivative_xml) { $_ =~ s/^\s*$//g; $_ =~ s/^.*detected on Server.*$//g; $_ = encode('utf8', $_); }
I canβt verify this in an absurd time, so it would be nice if I didnβt have trial and error here.
Thanks in advance!
Vince source share