why is child process a negative number? On Win32, the process id is whatever the value of $$ is. When you fork(), the parent retains whatever the original pid was. However, the child pid has a negative number. Why? CODE my $orig_pid = $$; my $child = fork(); if ($$ > 0) { print qq(1. The pid is $$\n); print qq(Parent process pid is $$, child i... 23 Apr 2010 20:47
FAQ 7.8 How do I declare/create a structure? This is an excerpt from the latest version perlfaq7.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 23 Apr 2010 17:30
FAQ 3.26 Where can I learn about object-oriented Perl programming? This is an excerpt from the latest version perlfaq3.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 23 Apr 2010 17:30
Trying to add exception handling, getting errors after adding Error.pm to path On 04/21/2010 06:55 PM, david.karr wrote: On Apr 21, 3:24 pm, Ben Morrow <b...(a)morrow.me.uk> wrote: Don't do that then :). Those files are modules called (respectively) CPANPLUS::Error and YAML::Error, not modules called Error. You need to install Error from CPAN. Ben Bleah. Lots of insta... 23 Apr 2010 17:30
FAQ 3.28 I've read perlembed, perlguts, etc., but I can't embed perl in my C program; what am I doing wrong? This is an excerpt from the latest version perlfaq3.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 23 Apr 2010 17:30
New well tested makepp snapshot released Makepp, a build program which has a number of features that allow for reliable builds and simpler build files, is a drop-in replacement for GNU make. It supports almost all of the syntax that GNU make supports, and can be used with makefiles produced by utilities such as automake. It is called makepp (or make++... 23 Apr 2010 20:47
FAQ 4.14 How can I compare two dates and find the difference? This is an excerpt from the latest version perlfaq4.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 23 Apr 2010 17:30
Strange file handling - please help I have a text file test.txt: <style> a {font-size: 12px;font-family: Arial,Helvetica,sans-serif;} </style> I want to print the file with the following Perl program: #!/usr/bin/perl print "Content-Type: text/html; charset=iso-8859-1\n\n"; print '<html><head>'; print '<meta http-equiv="Content-Type" content="... 23 Apr 2010 20:47
FAQ 9.10 How do I decode or create those %-encodings on the web? This is an excerpt from the latest version perlfaq9.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 23 Apr 2010 17:30
trying to match series of tokens to string Hi, I am looking for a neat way of trying a match of a series of tokens to another string. E.g.: $tg1 = "abdcadbcdadcbacbacbadbdcadbcbdcdcbcadabadbcadbc"; $qy1 = "abdca dadcbacb dbdcadbc cbcad dbcadbc" Because $qy1 contains the characters in $tg1, I want the match to be true. Whereas: ... 23 Apr 2010 17:30 |