#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 12 13 
Top Prev 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 Next

#perl

<perlmonkey> oh
<Botje> I think db will be faster for small sessions
<perlmonkey> cool thanks Botje
<Botje> whereas the fs will be faster for sessions with lots of data
<Botje> but then again, I don't think it matters much for small sessions :)
<perlmonkey> probably db is best I think
<Botje> not necessarily
<Botje> there's a certain amount of overhead involved with connecting to the db
<perlmonkey> why
<dec> db is the best option if you're sharing sessions across multiple webservers too
<perlmonkey> but sessions will be small as you said
<Botje> but db is easier to replicate of course.
<Botje> perlmonkey: go with file system, that's easiest to set up
<Botje> change to db if you think it's too slow
<perlmonkey> oh ok
<dec> i agree
<pasteling> "realflash" at 80.68.82.17 pasted "What data type is inside the [ ]?" (28 lines, 1.4K) at http://sial.org/pbot/23143
<realflash> Could somebody please tell me what data type is inside the square brackets in what I have pasted? I understand that the square brackets result in an array ref, but what are the values inside? I am trying to add values to the array with push. I thought maybe a single key hash, but no...
<Paladin> realflash: well.. they have to be scalars.. they can't be anything else..
<Botje> realflash: => is just a "fat comma"
<Botje> eval: [ foobar => 5, "six" => 9 ]
<buubot> Botje: ['foobar',5,'six',9]
<mauke> realflash: push @atts, 'spb-StreetLocation' => $params{'spb-streetLocation'};
<Botje> realflash: only thing => does is quote its left argument properly, other than that, it's no different than ,
<dondelelcaro> it's a magical comma!
<realflash> Super, thank you. I'll give that a go.
<simcop2387> i didn't know it was responsible for the quoting
<dec> simcop2387: indeed
<Botje> eval: [I=>see=>dead=>people=>]
<buubot> Botje: ['I','see','dead','people']
<dec> it quotes barewords for you
<simcop2387> eval: [I,see,dead,people]
<buubot> simcop2387: ['I','see','dead','people']
<simcop2387> when?
<mauke> use more strict
<Botje> eval: use strict; [I,see,dead,people]
<buubot> Botje: Error: Bareword "I" not allowed while "strict subs" in use at eval line 1. Bareword "see" not allowed while "strict subs" in use at eval line 1. Bareword "dead" not allowed while "strict subs"
<Botje> eval: use strict; [I=>see=>dead=>people=>]
<buubot> Botje: ['I','see','dead','people']
<Botje> :)
<mauke> eval: time =>
<buubot> mauke: time
<simcop2387> you made me look bad!
<mauke> eval: time ,
<buubot> mauke: 1172304813
<realflash> All working, thank you everyone
<perlmonkey> cool
<merlyn> eval: sub { wantarray } -> ()
<buubot> merlyn:
<merlyn> so it's still scalar context?

Previous Page  Next Page

Search ircarchive.info