#perl - Thu 3 May 2007 between 21:38 and 21:52



dkrThis is perl, v5.8.8
twbAw, cperl-perldoc doesn't have completion like bash does.
dkrCaelum: weird, it's not deterministic though, ran that exact command above multiple times, and sometimes it doesn't sefault
QtPlatypusdkr: Is it possable that the regular expression is degenerate and sometimes causes perl to allocate more memory then is advalable?
roadfishThe game frozen-bubble is broken. I cut down the perl program to: use SDL::App; print SDL::App->new();
any tips on how to debug this SDL?
Caelumdkr: doesn't segfault here...
dkr: maybe you have bad ram in the server
dkrCaelum: that commandline test was on my workstation, not the server, :)
Caelumoh...
dkrQtPlatypus: any idea how to test if that is the case?
Caelumdkr: ahh, it doesn't segfault on amd64, just tried it on i386 and it does segfault
dkr: err, actually what I meant to say was, it doesn't segfault on bleadperl, but does on 5.8.8
too bad 5.10 isn't out
Woostaif I open a file and then while( defined( my $line = <fh> )) over it, I'll never end up with the whole file in memory right? just each $line at a time?
dkrhrm, I guess I could test in chunks, but with multibyte chars chopping it up in arbitrary palces might be bad
Limbic_RegionWoosta - that depends
dondelelcaroWoosta: depends on what $/ is
CaelumWoosta: not exactly one line at a time because of buffering and such, but yeah
Limbic_Regionif there is only one line, then you will end up with the whole file in memory
WoostaCaelum: ta
Limbic_Regionif $/ is set to something not in the file, you will end up with the whole file in memory
WoostaIt's a maillog so many many 'lines'
Limbic_Regionif $/ is undef, you will end up with the whole file in memory
and if the file size is less than perl'
er
if the file is smaller than perl's buffer, you will end up with the whole file in memory
regardless of the number of lines
dkrI wish DBD::mysql worked that way, :) also having trouble with usng too much ram getting results back from db queries, even when fetched a row at a time, :)
Khisanthdamn pedants ;)
WoostaKhisanth: yeah, I stopped listening an hour ago :-P
Limbic_Regionhrm, I can't seem to think of any more ways the whole file would end up in memory
Khisanthdkr: there is an option to change that
Limbic_RegionI must be slipping
dondelelcaroLimbic_Region: gnomes?
dkrKhisanth: DBI or mysql specific?
Caelumdkr: there must be a module or something to test for unicode
Limbic_Regiondondelelcaro - sure but I would want it to be repeatable
Khisanthdkr: the option is "mysql_use_result" :)
dkrCaelum: yeah, was looking at http://search.cpan.org/~markf/Test-utf8-0.02/lib/Test/utf8.pm btu not exactly what I need. I should look at the source anyway though :)

Page: 1 8 15 22 29 36 43 50 57 64 71 

IrcArchive