#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 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 Next
#perl
<_rodrigo> then I try tu install Bundle::CPAN but everytime it tries to write a makefile it says not-ok
<rodrick-brown> anyone can think of anything faster? while(@arr) { $f{pop @arr}++; }
<lucs_> What's the hurry?
<Teratogen> rodrick, sure, use C
<rodrick-brown> looking for better optomization its part of a large batch job
<rodrick-brown> Teratogen, so that's the fastest ill get if I need to build a hash count of a large array?
<Teratogen> that looks like pretty tight code
<lucs_> rodrick-brown: You're sure you're trying to optimize the right thing? You profiled?
<SPOPPO> hello
<espenel> yo
<cokeslut> Hello
<Teratogen> cokeslut, now there's a nick.
<Jmax-> randi? that you?
<freeone3000> What's the default encoding for perl strings? Client-specific, utf8, utf16, ISO-8859-1..?
<mauke> who cares?
<mauke> you shouldn't mess with perl's internal encoding
<freeone3000> I'm writing something to connect to a perl server as a java application.
<cfedde> ascii
<freeone3000> So, I kinda gotta know at least what it's sending it over the network using pack() as..
<mauke> parse error
<cfedde> um... ascii or utf8 also core perl does not have "strings" as a data type.
<bpalmer> freeone3000: just tell it to encode it as utf-8 before transmitting it
<freeone3000> Mmkay, thanks..
<cfedde> see also perldoc utf8
<cfedde> um... perlunicode even
<peshalto> rodrick-brown: still here?
<peshalto> is that code faster than $count{$arr[$_]}++ for (0 .. $#arr);
<peshalto> ?
<peshalto> s/count/f/
<peshalto> and what do you do with %f after it's populated?
<infi> gumbybrain: Chess is a fun sport, when played with shotguns.
<GumbyBRAIN> No, purl, the #perl national sport is dongs are out, but not in the when creating the request.
<fredl> EasyDBI?
<fredl> I thought DBI was easy as it is..
<imMute> fredl: its POE
<peshalto> cat file | nl
<peshalto> who'dathunkit
<jharr> Compiled beryl with dmalloc (trying to find a memory leak) and man is it messed up.
<jharr> by messed up - I mean slow & laggy
<jharr> peshalto: check out wc too
<Jmax-> nl? i alwasy just used wc -l
<Jmax-> oh, it actually prints them too
<peshalto> Jmax-: yeah, different
<Jmax-> neat
<kestas> I'm trying to get LWP to accept+decode gzipped data, does anyone know how I'd do that?
<kestas> for some reason I just have no luck searching google for perl info
<Jmax-> $res->decoded_content
<Jmax-> google is not the right place to look
<peshalto> could do perl -ne 'print "\t$.\t$_";' filename ... but... nl is easier
<Jmax-> perldoc is, or search.cpan.org (for CPAN distributions) and perldoc.perl.org (for core perl docs)
Previous Page Next Page