| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Comments:
<0> pure perl on linux <0> sigh. accessing the servers is so slow <1> so does PAR archive sytem libraries too? not just the PMs? <2> how do you get the pwd in perl? <0> use Cwd
<3> Gogol! <0> right. <4> GumbyBRAIN: Gogol! <5> [] <- There goes your box (and an arrow. <6> GumbyBRAIN: OH NO! Not my BOX! <5> Oh wait, this is my fave fake illness so much - heatstroke is my fave fake illness of the box. <6> GumbyBRAIN r0x0rz the s0x0rz off my b0x0rz. <7> GumbyBRAIN: we're all stars now in the dope show <5> are you not want "true" to run in on a gun show now. <3> mangle: Womble <8> Womble <7> mangle: Monlge <8> Monlge <7> what does that do? <7> mangle: GumbyBRAIN *** <8> GumbyBRAIN procreation <5> Peter cushing had a database with some improved ideas of what you have, and the rich men, and he claims said info arose from a cookbook somewhere ages ago. Wrote this code that gets you the contents?
<7> ah <6> mangle: the quick brown fox jumped over the lazy dog <8> the the compleat philamot shyster jumped on stilts the halting molest <9> What's the practical difference between the following two ways of subsetting a hash? <9> 1) my @keys = qw{some hash keys}; my %subset; @subset[@keys] = @hash[@keys] <10> ITYM @subset{@keys} <3> cjeris: well at a guess, the first doesn't work <10> Also @hash{@keys} <0> i need some coffee <9> 2) my @keys = qw{some hash keys}; my %subset = map { $_ => $hash{$_} } @keys; <9> 1) # insert points and curves on square brackets <4> The fixed version of the first one should be faster. <10> Other than that no practical difference. <3> cjeris: does there need to be a difference? <10> Unless the hashes are so huge speed differences might matter. <3> They *look* different. Sometimes the first is handy if you're doing other stuff with the hash so you're initalizing it right away <11> the difference is only important if the hash already contains things <9> I'm a lisp/ML programmer so I like to write 'map', but don't yet have a good feeling for the relative efficiency of different Perl idioms.
Return to
#perl or Go to some related
logs:
postfix remote_header_rewrite_domain INCOMPLETE MERGE gentoo sgi #centos netinst vs businesscard ubuntu unable rsdp #css zipsplit howto sockets arp with python irrsi exploited
|
|