#perl - Sat 10 Mar 2007 between 00:13 and 00:16



JasonKinghobbs, no, he's calling it - but he's calling it whenever $newlocation isn't a plain file - eg. when it's a directory.
revdiabloWhy would $newlocation be a directory, though?
hobbsJasonKing: er?
JasonKing: I said mkpath.
narutosanKhisanth: 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'
JasonKingrevdiablo, he's a newbie, I can easily imagine a: mkpath($newlocation) on a previous run.
narutosanKhisanth: I do not know why it is so??
rabeldablefor a dataset that contains only IP addresses which is faster a hash or an array ?
revdiabloJasonKing: Yeah, but I thought he just said he removed it all and tried fresh
hobbsnarutosan: what?
JasonKingrabeldable, array.
merlynhow will you be accessing them?
just a big pile?
or some kind of sorting searching?
revdiablorabeldable: What do you need to do with the IP addresses
rhizorabeldable: array access is generally faster than hash access
rabeldableblock access to apache from spiders
narutosanKhisanth: I mean of course it must be but why is 'subjsec$id' working?/
merlynOh - then you want a hash
so you can look them up fast
hobbsrabeldable: sounds pretty hashy
JasonKingrevdiablo, like you said all along - we can't see all the code.
scrottiemerlyn!
eightbitbastardi was playing with perlcritic and it recommended against using postfix controls but it wasn't really clear why. why is this discouraged?
merlynpresumign you can keep it as a hash *in memory*
narutosanKhisanth: it means that the value is actually getting posted
merlynI would just use "pf" though
actionmadflojo offers to put all code up if you want
madflojooffers to put all code up if you want
merlynit can deal with large IP address tables
usually as a trie
madflojoim trying the die though
and the -e
hobbsthere are also modules that do IP address tries in perl
revdiablomadflojo: Instead, why don't you extract the part that is a problem and get a standalone example that has the same problem
JasonKingmadflojo, and?
narutosanKhisanth: thats why I posed whether the 'subjsec$id' is actually making any difference
revdiablomadflojo: We don't want to wade through all your code, we want you to do that part =)
madflojohold on reruning it
hobbs(looks like Net::Patricia is the one I had in mind)
actionmadflojo thought he did with previous paste
madflojothought he did with previous paste

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 

IrcArchive