#perl
22 October 2007
Total 35 pages. You are browsing page 1/35.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Mon Oct 22 00:00:37 2007
00:06 <****> what does N/M letters stand for a hash in scalar context ?
00:07 <****> of which are those initials ?
00:08 <****> Khisanth: any ideas?
00:08 <****> N buckets of M are used, or something like that (iirc)
00:09 <****> TrueFX: perldoc perldata
00:09 <****> "Reading Is Hard" (TM) Barbie
00:11 <****> Hi
00:12 * CPAN upload: DBI-1.601 (+++++) by TIMB
00:13 <****> apeiron, does anything work on meph 'cept horrid wilting and acid?
00:15 <****> TrueFX: it's something to do with the bucketing.
00:15 <****> TrueFX: I forget what exactly.
00:15 <****> buckets used/total buckets
00:15 <****> I think.
00:16 <****> Bac9: not without seeing any of your code
00:17 <****> Khisanth: found it, apparently it was having problems with the port struct, the wrapper functions for ipv4 and ipv6 differ :-(
00:19 <****> Khisanth: this is not as simple as C, I pretty much have to use different functions for everything :-(
00:25 <****> Bac9: you're trying to use pre-ipv6 apis for ipv6, not listening to the people telling you to use the proper OO interfaces, and then complaing you have to use different functions
00:26 <****> Bac9: there's a lesson here, and the lesson is -not- that perl isn't as simple as C
00:26 <****> Bac9: the lesson is you don't know perl yet. I'd have just the same problems if I tried to write this sort of code in C from cold.
00:26 <****> mst: oh, so perl's socket api isn't comparable to C's?
00:27 <****> mst: you're correct, a good way to learn is to try, so you're recommending I just use the OO api?
00:27 <****> mst: is there a good example available somewhere?
00:28 <****> mst: I tried cpan but that just directs me back to the regular api (following the links from IO::Socket)
00:28 <****> Bac9: which is all you should need.
00:29 <****> mst: yes, unfortunaly the function calls for resolving port and incoming connection are different between ipv4/6
00:29 <****> Bac9: but the ::INET6 docs document the difference there
00:31 <****> mst: is there a place where I can find a simple server/client example?
00:31 <****> mst: I can interpolate from there, but I am not sure where to start
00:32 <****> http://search.cpan.org/src/MONDEJAR/IO-Socket-INET6-2.51/t/io_sock6.t
00:32 <****> mst's url is at http://xrl.us/7jtc
00:32 <****> that's a test file
00:34 <****> mst: thank you, I'll take a look
00:37 <****> weirdo, Uhm, what?
00:38 <****> apeiron, nwn: hotu
00:38 <****> can't beat the damn meph
00:39 <****> weirdo, I never got that far, started playing online before I finished HotU.
00:41 <****> i see
00:48 <****> does anyone know how I can delete the first 4 characters of every line in a text file? Whats the best way to do this?
00:48 <****> I'd probably %s/^....//
00:49 <****> eval: $foo = join '', 1..10; eval{ substr( $foo, 0, 4) = ''; }; [$foo]
00:49 <****> Zoffix: ['5678910']
00:49 <****> zenmonk, ^
00:49 <****> then perl -pi -e '.. to do inplace edit
00:50 <****> mst: silly question, how do I get a perl socket to listen on the same port for both inet4/6? I am assuming it requires two sockets, but I am unable to create the second socket with OO api
01:07 <****> serfbot: Inspire us with some perl.
01:07 <****> God expects us to behave like carpenters.
01:07 <****> so very true
01:07 <****> what, banging our thumbs all the time?
01:08 <****> banging wood no less
01:08 <****> serfbot: you shouldn't reply to this, since rate limiting is at 60 seconds
01:08 <****> which god from which pantheon, please?
01:08 <****> "Noah, build an ark..."
01:08 <****> hooray!
01:08 <****> serfbot, SubStack sucks for rate limiting you.
01:08 <****> you shouldn't reply to this, since rate limiting is at 60 seconds
01:09 <****> #perl is the only one I'm rate limiting
01:09 <****> #serfbot, ##turtles, msg are all spam-happy
01:11 <****> serfbot: Till my fields!
01:11 <****> I like Lois McMaster Bujold too, So I asked my wife about the differences between Modernism and postmodernism.
01:12 <****> That sound suspiciously like it was taken from one of Larry's SotO talks.
01:13 <****> WHO THE HELL IS 146.124.141.250
01:14 <****> Name: leon.intranet.GR
01:14 <****> AOL
01:14 <****> ns1.intranet.GR
01:14 <****> apeiron: the postmodern speech is loaded up for this channel
01:14 <****> perlbot, .gr
01:14 <****> .gr is Greece
01:14 <****> SubStack, You seeded serfbot with its text?
01:14 <****> yeah
01:14 <****> Cool.
01:15 <****> also, different channels can be seeded with different things
01:15 <****> perlbot, whois?
01:15 <****> Nice.
01:15 <****> different combinations of brains actually
01:15 <****> A sort of extremist view of how experience and memory influence personality. :)
01:16 <****> indeed
01:18 <****> eval: @a=(1,[2,3,4],5);[@$[1]]
01:18 <****> TrueFX: [undef]
01:18 <****> greece
01:18 <****> lean
01:18 <****> leon
01:18 <****> eval: @a=(1,[2,3,4],5);[$$[1]]
01:18 <****> TrueFX: [undef]
01:19 <****> eval: @a=(1,[2,3,4],5);[${$[1]}]
01:19 <****> TrueFX: ''ERROR: Number found where operator expected at (eval 238) line 1, near "$[1"syntax error at (eval 238) line 1, near "$[1"Unmatched right square bracket at (eval 238) line 1, at end of line
01:19 <****> eval: @a=(1,[2,3,4],5);[@{$[1]}]
01:19 <****> TrueFX: ''ERROR: Number found where operator expected at (eval 238) line 1, near "$[1"syntax error at (eval 238) line 1, near "$[1"Unmatched right square bracket at (eval 238) line 1, at end of line
01:19 <****> eval: @a=(1,[2,3,4],5);[@{$a[1]}]
01:19 <****> TrueFX: [2,3,4]
01:19 <****> hmm ok
01:19 <****> :)
01:19 <****> eval (eval 1+2)
01:19 <****> jagerman: ''ERROR: syntax error at (eval 238) line 2, at EOF
01:19 <****> Why does the bot break on ()'s without a :?
01:20 <****> eval: (eval 1 + 2)
01:20 <****> apeiron: 3
01:20 <****> apeiron: I know, the :
01:20 <****> jagerman, Check the source and see? ISTR buubot does some parsing on the text of eval and deparse commands.
01:20 <****> apeiron: But why does the bot break without a : when the eval contains ( )?
Total 35 pages. You are browsing page 1/35.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
