#perl - Tue 6 Mar 2007 between 22:39 and 22:45



Caelumkritical: see perldoc -q ide as well
merlynI generally don't use a debugger
except for interactive tests
crungeavar: merlyn *is* a debugger
dewhow can i tell if a given pid is running, regardless of user? (kill 0, $pid returns 0 for running processes by a different user)
kriticalcrunge, Caelum: thanks, I'll check those out =)
avarcrunge: lies:)
merlynit's pretty rare that I'll invoke "perl -d someprogram"
maybe once every six months
and mostly as a demo :)
Caelumdew: on what OS?
dewfreebsd
somianavar: I mean a hack that was based on 2html.vim and extended it greatly.
avarI need to learn to use the debugger realy:)
crungedew: if you're willing to be icky, inefficient, and linux-specific you can '-f /proc/$pid/status'
merlynkill 0, $pid returns 0, but $! will tell the kind of error
if it's doesn't exist, then it's gone
if it exists, but someone else, then it's a different error
dewaha, thanks merlyn
merlynmaybe EPERM
vs EEXIST
check the $! by trying a few
dewcheers crunge, can't see anything in /proc in fbsd
i shall, thanks, didn't even think to look there
avarmerlyn: what perl related stuff do you use in emacs? cperl-mode, cperl-perldoc..
merlyncperl-mode yes
I loaded perl-critic-mode for a column, but quickly disabledit
actionavar has C-c C-p S display the source of the .pm file via perldoc -l but that's pretty much it
avarhas C-c C-p S display the source of the .pm file via perldoc -l but that's pretty much it
crungedew: note that if you do it my way and someone else sees it, they'll probably laugh at you and tell you that you suck
Caelumthere's a Proc::ProcessTable
dewheh, duly noted
avarsomething like SLIME for Perl would be very neat:)
dewOoh also handy
avarGumbyBRAIN: Maybe I should just use Common Lisp instead of this Perl stuff?
GumbyBRAINAny of you use instead?
crungeavar: or you can follow "Higher Order Perl" and do Lispy perl
avarI should read that book
crungeavar: what's SLIME... I'm not going to bother trying to craft the proper google search to find out
avar: it's a trip in some places
avarcrunge: an awesome clisp interaction environment

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 

IrcArchive