#perl
30 September 2007
Total 36 pages. You are browsing page 1/36.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sun Sep 30 00:00:38 2007
00:01 <****> can someone help me with this: http://sial.org/pbot/27787
00:01 <****> I tried using $^I but no cigar
00:04 * jagerman doesn't see $^I
00:04 <****> pitty trie s/Q\$currHost\E/Q\$newhost\E/
00:04 <****> ok
00:05 <****> pitty or s/Q\$currHost\E/$newhost/
00:06 <****> pitty_: Read perldoc perlrun, about what -i does
00:06 <****> i did, but understood it as getting the file handle
00:07 <****> Setting $^I = "" is exactly the same as specifying -i (and $^I = ".foo" is exactly the same as -i.foo)
00:07 <****>) { ... }
00:09 <****> hehehe just read about strict refs guess you learn something new everyday
00:10 <****> "Boa" at 84.162.14.203 pasted "check that" (9 lines, 203B) at http://sial.org/pbot/27788
00:11 <****> pitty http://sial.org/pbot/27788
00:12 <****> PARIKA anyone????????
00:12 <****> thanks BoaSun
00:12 <****> FC
00:12 <****> pitty np
00:14 <****> so nice my ip is here again.... every minute i will get hijacked again....
00:15 <****> btw. any NEOFOLKER around?
00:34 <****> Hello, hey does anyone know which SIG is used when perl tries to close a pipe that is in execution. Here there's a gui that launches a script and if I try to close the gui before closing the script I get Segmentation fault(core dumped)
00:38 <****> Attempting to write to a pipe whose other end is closed may generate a SIGPIPE for the writing process, but that wouldn't seem to be the cause of the segfault here.
00:38 <****> .. Reads to a pipe whose other end is closed will just give an appropriate return value, and there's nothing wrong with closing a pipe that is being actively read from.
00:39 <****> woggle: The gui creates a pipe to another perl script that tries to get the content of a website, but if I close the gui while it is trying to get the content the segfault happens
00:39 <****> woggle: is there any way to send a term signal to the pipe before the tk gui closes?
00:40 <****> If only perl programs are involved here, the segfault is a bug you should report.
00:40 <****> (Possibly a Tk bug, but nevertheless.)
00:41 <****> The Tk GUI closing should be generate an event you can setup a handler for.
00:41 <****> I don't think it's a tk bug
00:41 <****> By Tk, I mean Perl/Tk of course.
00:41 <****> because the gui closes without segmentation fault but the other script gives the segmentation fault
00:41 <****> Well, then possibly a bug in some XS-based module the other script uses.
00:42 <****> I see :)
00:42 <****> ty for the help
01:16 <****> clear
01:38 <****> I'm looking to learn an interpreted language.
01:39 <****> I know C/C++ as well as Java (not ECMA Script), will that hurt or help me learn Perl?
01:40 <****> Knowing any programming language generally helps learning another.
01:40 <****> There's also the fact that Perl's syntax resembles that of C/C++/Java.
01:41 <****> well.
01:41 <****> Java's resembles Perl :-p
01:41 <****> in terms of who came first
01:41 <****> yes, they all resemble C
01:41 <****> knowing lisp helps best :)
01:41 <****> weirdo, If you want to write LISPy Perl.
01:42 <****> JSTL - now *that* resembles perl
01:42 <****> I've always wanted to learn Fortran. :)
01:42 <****> apeiron, it gets no better than that :)
01:44 <****> oh. and javascript and PHP
01:44 <****> also of perl descent, kinda
01:45 <****> Eww no PHP. :(
01:45 <****> PHP has the dubious honour of once being implemented using perl. :)
01:45 <****> wow java was after perl?
01:46 <****> Yep.
01:46 <****> I thought perl was one of these newfangled languages like PHP
01:46 <****> Nope.
01:46 <****> Perl's about as old as C++.
01:46 <****> :)
01:46 <****> interesting
01:46 <****> What do you guys think about Fortran?
01:46 <****> Could I get a job with Fortran?
01:46 <****> It was the Internet's darling long before Java was even a glimmer in Gosling's eye.
01:47 <****> It still is in my heart ^_^
01:47 <****> no well
01:48 <****> Does perl support malloc()?
01:48 <****> Java has nice API collections. But perl has more flexible style
01:48 <****> How do I allocate memory? Can I use malloc() and free()?
01:48 <****> What about pointers?
01:49 <****> BenignTroll: you don't worry about it
01:49 <****> BenignTroll, You don't need to do any of that stuff usually.
01:49 <****> unless you have circular data structures
01:49 <****> er
01:49 <****> BobSapp, wrong
01:49 <****> hunh?
01:49 <****> apeiron: ?
01:50 <****> Scalar::Util::weaken can be used to deal with circular data structures.
01:50 <****> ah yeah
01:51 <****> BenignTroll, Perl uses reference counting, which (most of the time) is sufficient enough that you don't need to use malloc or free.
01:51 <****> (although you can link perl with custom C libraries that use those features)
01:52 <****> As for pointers, there are these things called references. Kinda like pointers, except they know to what they point.
02:07 <****> Reference counting is kind of inferior :-\
02:23 <****> config/auto/perldoc.pm my $content = capture_output('perldoc -ud c99da7c4.tmp perldoc') || undef; this kinda looks like the test line but no idea how its using it
02:23 <****> can't write-open c99da7c4.tmp: Permission denied at /usr/lib64/perl5/5.8.8/Pod/Perldoc.pm line 1431
02:24 <****> thats after I took the perldoc -ud c99da7c4.tmp perldoc and put it on the cli
02:25 <****> Someone at 189.47.30.55 pasted "#!/usr/bin/perl ##############" (61 lines, 1.8K) at http://sial.org/pbot/27789
02:31 <****> what perl editor you use?
02:31 <****> vim
02:32 <****> vim
02:33 <****> emacs
02:33 <****> One more for vim to make the GNU-bie feel out of place. :)
02:34 <****> what is GNU-bie?
02:34 <****> nano nano
02:34 <****> any idea on why perldoc isn't working ?
02:34 <****> they could to say me which the error in this source ? http://sial.org/pbot/27789
02:35 <****> nano,vim,pico, etc are normal editors, anyone uses a perl only editor?
02:36 <****> gabbana: i don't think a perl *only* editor exists. what exactly are you looking for?
02:36 <****> can anyone name a perl only editor?
02:36 <****> pravus: an editor to check syntax
02:37 <****> does eclipse have a perl plugin? surely emacs has something...
02:37 <****> i just use 'perl -c'
Total 36 pages. You are browsing page 1/36.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
