| |
| |
| |
|
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 37
Comments:
<0> buu: I don't even see in Curses.pm where it links to the library at all. It's just a normal module, not linked to anything. <1> i have no idea how many decimals "require" considers significant though <2> dabreegster: Er, what needs it then? <0> buu: I'm going to attempt to make my Curses-dependant game playable on a Windows box without my friends having to install libraries. <2> dabreegster: Specifically <2> But I'm pretty sure par will do it <1> dabreegster, why would you make a curses based game ? :) <3> pbelau: You could just try it. <1> opengl not good enough for you ? <0> pbelau: It's a roguelike! <0> buu: OK. I'll mess with it. <0> pbelau: A bit... unnecessary. <4> I'm stepping through @ARGV using foreach. how do I tell if I'm on the last element? <1> yeah, but opengl is probably more portable than curses :) <2> StevenR: Keep a count. <5> StevenR - you can't
<6> dabreegster: you don't see the various -lncurses -lcurses in Curses.pm's Makefile.PL? :) <1> and more pleasant to use <2> StevenR: Or just set a flag and check after the loop finishes <0> pbelau: I should really emulate curses with SDL, but I don't feel like it. <5> for my $id (0..$#ARGV) { my $item = $ARGV[$id]; if ($id == $#ARGV) { ... last one ... } } <0> Khisanth: Ah, that'd be it. I don't remember compiling my Curses module. :P <1> curses should die <7> pbelau: it's using v-strings, so it should work with any length. But screwing with the version number doesn't seem like a highly sensible idea to me <2> hobbs: But it's pbelau for you <7> pbelau: the most obvious concern is: what happens when you install a module that does "require 5.8.9" ? <1> hobbs, well if perl really were downward compatible with CPAN modules it wouldn't be necessary <4> ok.. thanks folks :) <2> hobbs: SEE?! <1> the problem is that theory doesn't quite correspond with reality in the perl world <7> yeah <8> mangle: grave frippery <9> sepulture gingerbread <8> mangle: grave frippery <2> Yaakov: Please save me from the pbelau. <9> intense fig <7> pbelau: Why the hell do you continue coming here? <8> intense fig! <8> mangle: grave frippery <9> cramping ornamentation <1> hobbs, to annoy you <7> pbelau: please find somewhere to go where the people WANT to be treated like idiots <10> hobbs: /ignore does work. :-) <1> yeah, i suggest that you use it <1> i already have some of you jack***es on it <7> he still wastes my bandwidth <8> Hello, hobbs. <7> llo Yaakov <8> hobbs: mangle: grave frippery <9> exit duplication of effort <8> hobbs: mangle: grave frippery <9> sepulchral payroll padding <7> keep it <8> Heh. <11> any komodo users in the house? <11> i keep getting lockups w/ 3.5 professional, and i'm suspecting that it's nfs related... <12> hmm, what's the best way to determine the current script's filename on a win32 binary? my $filename = __FILE__; or my $filename = $0; or what? <13> $0 is the name that was used to execute the program. __FILE__ is the name of the current file, module etc. <8> hobbs: It gave me "biological death fig"./ <7> haha <12> cfedde: so $0 ? <7> sparkman: no, probably not <12> ok, so __FILE__ or something else? <11> sparkman: what are you doing w/ it? <14> well __FILE__ will give you the current scripts filename, which is what you asked for - but whether that's what you want or not, different story.. <13> hobbs: why would it not be $0? <7> cfedde: I just didn't think it was what he was asking for <12> shift8: store it? <13> hobbs: ok. <11> sparkman: ok... <5> & enroute to thousandoaks.pm to watch damian go nuts <13> sparkman: most of the time people use $0 since it is what things like ps and top display <12> heh <13> __FILE__ is interesting to loggers so that developers can find where the message was generated. <11> and __LINE__ <13> shift8: indeed <11> so - no one uses komodo? guess these random lockups are why :)
<12> yeah, i don't care for komodo <12> gvim works nicely :) <7> sparkman: $0 is useful for logging a general idea of "what app am I?" but not much more <11> yeah, yeah :) <7> sparkman: if that's what you want, you're in business :) <12> all i want is the filename of the currently execupte script <12> so i think $0 will do <7> $0 isn't exactly a filename <8> mangle: spiny puff <9> tricky oxygen mask <12> oh? <8> mangle: spiny puff <9> acanthoid powder puff <8> mangle: spiny puff <9> thorny gather <7> sparkman: well, say you install your script somewhere in my PATH (/home/dquayle/bin), and I run "potatoe", which is the name of your script <7> sparkman: $0 is "potatoe" <12> ok <7> $0 is _the name the script was invoked as_ <12> this is gonna be a win32binary (par) btw <7> sparkman: in that case, give it some testing, see if the value of $0 is something useful to you. I don't know offhand what PAR might do :) <11> haha - thorny gather! i love the mangle thing. <11> mangle: grainy peepshow <9> wimpled peepshow <11> mangle: doopid blorapope <9> doopid blorapope <15> mangle: Is there a way to spawn a certain number of child processes, and then spawning a new one after each finishes? :) <9> Is there a ingress to give birth to a not in error divide of teener processes, and later spawning a lately simple subsequent severally finishes? :) <16> mangle: to be or not to be, that is the question. whether 'tis nobler to live or to die <9> to be or not to be, that is the text. whether 'tis nobler to dig or to conk <1> mangle: i like titties and beer <9> i gloat over titties and beer <17> . o ( whether 'tis nobler to suffer the slings and arrows... ) <18> Does anyone know how I can go about issuing a rollback in a custom error handler using DBI? the HandleError => $coderef, only p***es the offending statement handle, so I can't issue a $dbh->rollback? Any way to get the database handle knowing only the statement handle? <16> flecto: you could create a closure <17> Have your handler capture $dbh at creation time? <17> C<my $dbh; $dbh = connect(..., HandleError => sub { $dbh->disconnect }); <16> eval: $a = [ 4, sub { $a->[0]++ } ]; $a->[1]->(); $a->[0] <9> Botje: 5 <18> ok guys - that gives me some good direction...thanks a bunch <16> eval: use strict; my $a = [ 4, sub { $a->[0]++ } ]; $a->[1]->(); $a->[0] <9> Botje: 4 <16> bummer. <17> my $a; $a = ... ; # $a isn't defined inside the scope of the closure. <16> I know. I was just testing ;) <19> shazbot <20> SLUT LUTMAN <21> i a new to these dynamic languages,mainly use c++/c# i would like to know what benefits do they offer <22> Ryugi, less coding. <23> much, much less coding :) <21> ok <21> i have seen both perl and python, what are the difference between them <24> How cr*** of an answer are you looking for? <24> By the sound of that question, very. <16> python is named after a snake and perl after a gem <16> NEXT! <0> Ooh, it overwrites files. If your input is script, script is now an executable. perl2exe-- <24> That doesn't make sense. It would have to name it .exe. <24> Oh, they have non-Windows versions now <24> nm <0> It didn't. I'm on Linux. <0> Yeah. I'm actually gonna see if I can get it to generate a win32 binary though. That's the whole point. <21> b0at:the reason why i ask is that i see alot of perl vs python articles on the internet and they are complaining that the syntax is horrible and saying python is better <23> Ryugi: write perl for a while, see for yourself... <24> I wish there was a succinct way to characterize that attitude besides "would rather use batch files than a programming language" <21> i wrote a hello world app and it looks like c <24> Because they glance at it and make ***umptions about each <24> Ryugi: Do you know C? Maybe you're writing Perl with a C accent. <21> yeah i know C <24> perl -e'print "Hello, world."' <23> perl -le 'print "Hello, World."' <23> # doesn't look much like C to me... <21> print("hello world")
Return to
#perl or Go to some related
logs:
#perl booyyakasha knoppix md0 mdadm segmentation fault bcml sourceforge
dapper equalizer totem rror: 'Access denied for user 'root'@'localhost' (using password: NO)'
#php #perl fsck /dev/brain freenode ubundu start vnc server
|
|