in reply to Recursive Hash and XML::Simple Processing Time
when the file gets to be too long (20,000 lines), this method takes a very long time.
Could be because you're loading the entire file to @file before processing.
Try
Also to shorten the running time say return; instead of $index++;.open(my $AFILE, '<', $file) || warn "ERROR - Couldn't open $file - $!\ +n"; while (<$AFILE>) { #call the processing as a subroutine } close $AFILE || warn "ERROR - Couldn't close $AFILE - $!\n";
Software speaks in tongues of man; I debug, therefore I code.
|
|---|