Don't ask to ask, just ask | |
PerlMonks |
Re: Too Many IDsby choroba (Cardinal) |
on Jan 09, 2020 at 08:08 UTC ( [id://11111228]=note: print w/replies, xml ) | Need Help?? |
Update: This answer isn't really helpful, sorry. Your solutions stores the same references under the sn's, so it should occupy memory comparable to my solution. If your concern is memory, you can store just the "sn to id" map instead of storing all the data twice.
You then need to nest the references to get the value:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|