| |
| |
| |
|
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> i'm not using setsid... <1> oh, you want to *stop* it <1> I thought you were asking how. furrfu. <0> no, i don't want it to detach from the parent process <2> so my grep is not working as i expect... grep($string,@array) returning elements that don't have a match, the $string is a real string [a-z] (no RE) only and the @array is an array of strings (sentences) Ideas? <3> i hope hill clinton doesn't win the election <3> i think females will vote just because she's a female that's there <3> very bothersome <4> book: perldoc -f grep <5> book: Type 'perldoc -f grep' in your shell or go to http://perldoc.perl.org/functions/grep.html <1> bobk: where's the quotemeta? <2> pulled it out - didn't help <4> book: the first arg to grep is an expression that should return a true value for the things you want to keep and a false value otherwise <6> woo hoo; got a B in quantitative analysis <0> does this sound correct: if i double fork, then kill the parent, the grandchild detaches? <6> that cl*** blew
<1> (exam results)-- <6> aced the first and last test, 100% <2> Why is grep treating the second parm a an RE? If there are metachars in the @array it fails.... <6> integral, are you taking summer school cl***eS? <1> janhaa: eh? do you think "detach" means something in the POSIX model? <1> Chris62vw: nope <7> yes in the POSIX threads model <1> bobk: it's not. <1> amnesiac: I said *process*. but sort of quietly... <0> integral, i have no idea. but what do you call it, when a process "falls back" to the root of the process tree? <1> reparented? <1> orphaned? <7> orphaned child! <0> you tell me :) <2> integral: I know it's not supposed to , that is what i expect and my prev experience. In this case it is, issues w/ '/' and '*' in the @array <0> can sleep 1; return anything else than 1 ? <1> bobk: the problem is that I can't believe you <2> I cant believe me either, I've done this many times, never came across the @array haveing metachars in it tho. <8> janhaa: yes <1> bobk: Well stop believing, and go and figure out what's happening! <0> hobbs, ok. <8> janhaa: although if you want better than second-resolution for how long you slept, you should use one of Time::HiRes's sleep functions instead <0> yep. <9> bobk: can you paste a fully working example of grep not working like you expect to one of the paste bots? <8> $ perl -MTime::HiRes=sleep -le 'print sleep 1' <8> 1.001558 <0> i didn't know sleep 1; coud return 0 :P <2> Paladin: not familiar w/ pastebot -- pointer? <9> bobk: /topic <2> tkx <8> janhaa: it could, if it was interrupted by a signal. Or it could return 2 or more if your process went a long while without getting CPU time <1> gah, too many irc channels :-( <0> hobbs, cool :) <0> POSIX - is that just a module, so things should be more standard? like if you're used to writing C or something? <1> no, it's a grabbag of weird stuff from the POSIX API <1> and that doesn't have to be impl'ed on non-POSIX systems. <0> okey. i don't really care, but does it work in windows? <1> (windows has Win32::API for some of its own stuff for example) <0> ok <1> GumbyBRAIN: Design me a reusable widget <10> Can anyone advise me on the widget if i was a joke, it's poor grammar. <0> !!!! i'm getting so freakin frusturated :( <11> janhaa: :( <0> if i open STDERR to i log, i should be able to see the perl-core error messages as well...or? <1> yes <0> good. <0> i'll start some logging then... my server ****s :/ <0> my next svn commit will contain a lot of changes :P <11> GumbyBRAIN: what's your take on svn vs cvs? <10> a brisket baked in canned corn on it. <0> huh? <0> what does that mean? <0> some kind of cookie? :P <1> Suppose I had a database with some blob fields, and it looked suspicously like a filesystem, what modules do I need to provide a DAV interface to it? (like Zimki does for example) <0> mod_perl and DBI :) <1> yes, and the DAV part? :-) <0> perl code. <12> hi all. when p***ing an object into a subroutine, must I p*** the object by reference? <8> joseki: an object is a reference. <12> hobbs: ah, right.
<12> hobbs: so, must I dereference in the subroutine to use the object? <1> no <0> joseki $obj->method() #method is a sub inside the cl***... <0> will objects change in perl6? still package/bless i hope..? <1> mostly :) they get a hell of a lot more sugar <1> But it's good sugar <13> hi those any one knows a way to convert strings of numbers from \d+ to \d+Kb ,\d+Mb ect' ? <0> oh? the real thing or the syntetic? <0> care to share some of the goods? <9> The_SB: sure.. division.. <14> integral: there is bad sugar too, then? :'( <15> eval: @foo = qw(457 567 890); map { "$_Kb" } @foo; <13> Paladin: :-) there mast be a better way <5> eggzeck: 3 <15> eval: @foo = qw(457 567 890); [map { "$_Kb" } @foo]; <5> eggzeck: ['','',''] <9> The_SB: define "better" <14> The_SB: microsoft has been doing it since 1985, so I'm pretty sure it's possible. <15> eval: @foo = qw(457 567 890); print @{[map { "$_Kb" } @foo]}; <5> eggzeck: 1 <1> there's sory a moduile, did you sehfch? <11> eval: my %hash; %hash || undef <5> Fennec: <14> hmm <14> Number::Format <14> can do it <1> gah, stupid irc, I'm back to thinking about p2p muds again <16> Hi, dont mean to be annoying... But does anyone know of a resource for learning more about perl Tk? <16> That isnt well... outdated? <16> Most tutorials I find online arent very in-depth, or they just dont work <4> Termy: Get the O'Reilly book on Perl/Tk <13> Paladin: well whet I use File::Spec it give me a better portability on diffrent OS , so I hope to find a way to do somthing analog with FS and NET work data sizes <16> PerlJam, know of a location for the ebook? :/ <17> Yaakov: you around? <18> Termy: widget <9> The_SB: and how does division not work in those cases? are Kb different number of bytes on different OSs? <16> rob-ert, the man? <16> I've already taken a look at that awhile ago I believe <18> Termy: no, the programm. just type 'widget' at you shell prompt <18> your <16> ok <1> Termy: safari.oreilly.com <17> any jewish people in here? I need to know what "Yoma 67b" is, or more importantly, how to cite it as a reference <1> the other #perl appears to be having their Jewish Hour at the moment :) <13> Paladin: no but on network usualy we write 1000=KB and on filesystem data 1024=KB <16> rob-ert, I dont have "widget" <17> integral: which network? <1> magnet? <9> The_SB: I'm still not sure how division isn't working here.. obviously you will need to tell whatever you use if the number is network or FS based.. so you divide by 2 different numbers in your script.. people seem to want to make things far more complicated than they are.. <18> Termy: hmm, should come withe the perl/tk modules <16> :/ <16> know of where to wget it? <16> I know I have tk <13> Paladin: you ar right - I am jast to lasy ... division will do <16> found it :) <16> uff! Thanks rob-ert! <16> rob-ert++ <18> Termy: np <16> mmm <16> rob-ert, I've never seen tk used this way (when I look at the source) <19> The_SB: Then upload it to cpan. <16> :/ <13> buu OK <16> Ill use safari <16> thanks integral <20> japhy: I am now. <3> mmm <3> a cluster of mini macs <16> integral, do you perhaps know the name of that book? <1> which book? <1> "Learning Perl/Tk", "Programming Perl/Tk" et <1> etc
Return to
#perl or Go to some related
logs:
setterm blank matchbox auto.misc fedora growisofs #web mirrors unstable debina #osdev #python #linux catalyst Invalid command 'PerlOptions', #linux #perl
|
|