First of all, thanks again. I really appreciate the help from all you guys. I also appreciate how much more there is to know about this wonderful language.
A few question re. BrowserUk's code:
1. When I run your code with passing -O=6, for example, it also prints the structure to the screen. This does not happen when omitting the -O=... . Why is that?
2. What is the meaning of pp here? I read in CPAN that it is used to create standalone executables, but I don't understand the connection (and moreover, why do we pass the structure to it...).
3. Can you explain the heart of the packing:
printf O "%s", pack 'V/A*', pack 'V*', @{ $AoA[ $_ ] };;we we print each array to the output file. what does the / between the V and A stand for? I can read it means for a count of the packed items, but where does it value come from? and why do we need the second pack?
And one last question for now - when the ds becomes too large to store it all in memory, is tying with MLDBM the preferred paradigm? What are the alternatives?
Thank you!
In reply to Re^4: Storing large data structures on disk
by roibrodo
in thread Storing large data structures on disk
by roibrodo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |