| JasonKing | hobbs, no, he's calling it - but he's calling it whenever $newlocation isn't a plain file - eg. when it's a directory. |
| revdiablo | Why would $newlocation be a directory, though? |
| hobbs | JasonKing: er? JasonKing: I said mkpath. |
| narutosan | Khisanth: true what I am saying is that in the prSelections value=> 'subjsec$id' changed to 'subjsec' then there is a constant value in the database for 'subjsec' |
| JasonKing | revdiablo, he's a newbie, I can easily imagine a: mkpath($newlocation) on a previous run. |
| narutosan | Khisanth: I do not know why it is so?? |
| rabeldable | for a dataset that contains only IP addresses which is faster a hash or an array ? |
| revdiablo | JasonKing: Yeah, but I thought he just said he removed it all and tried fresh |
| hobbs | narutosan: what? |
| JasonKing | rabeldable, array. |
| merlyn | how will you be accessing them? just a big pile? or some kind of sorting searching? |
| revdiablo | rabeldable: What do you need to do with the IP addresses |
| rhizo | rabeldable: array access is generally faster than hash access |
| rabeldable | block access to apache from spiders |
| narutosan | Khisanth: I mean of course it must be but why is 'subjsec$id' working?/ |
| merlyn | Oh - then you want a hash so you can look them up fast |
| hobbs | rabeldable: sounds pretty hashy |
| JasonKing | revdiablo, like you said all along - we can't see all the code. |
| scrottie | merlyn! |
| eightbitbastard | i was playing with perlcritic and it recommended against using postfix controls but it wasn't really clear why. why is this discouraged? |
| merlyn | presumign you can keep it as a hash *in memory* |
| narutosan | Khisanth: it means that the value is actually getting posted |
| merlyn | I would just use "pf" though |
| action | madflojo offers to put all code up if you want |
| madflojo | offers to put all code up if you want |
| merlyn | it can deal with large IP address tables usually as a trie |
| madflojo | im trying the die though and the -e |
| hobbs | there are also modules that do IP address tries in perl |
| revdiablo | madflojo: Instead, why don't you extract the part that is a problem and get a standalone example that has the same problem |
| JasonKing | madflojo, and? |
| narutosan | Khisanth: thats why I posed whether the 'subjsec$id' is actually making any difference |
| revdiablo | madflojo: We don't want to wade through all your code, we want you to do that part =) |
| madflojo | hold on reruning it |
| hobbs | (looks like Net::Patricia is the one I had in mind) |
| action | madflojo thought he did with previous paste |
| madflojo | thought he did with previous paste |