Search results

  1. S

    Question about signal handling in Perl ..... ?

    How easy is it, in Perl, to have a function which gets called on SIGINT (when you press ctrl+C or just do a normal kill) and does some tidying up -- i.e. writes its results so far to a database and unlinks its pidfile -- before exiting?
  2. S

    Is perfect stoicheiometry always to be desired ?

    Or are there situations when it is preferable to have an excess of one or the other reagent?
  3. S

    CGI scripting question?

    I am writing a CGI script in Perl. Unfortunately, it is probably going to take several minutes to execute in practice, and it doesn't need to interact with the user while it's doing its business.. Therefore, I was hoping to be able to have the script fork a subprocess to do the hard stuff and...
  4. S

    CGI scripting question?

    I am writing a CGI script in Perl. Unfortunately, it is probably going to take several minutes to execute in practice, and it doesn't need to interact with the user while it's doing its business.. Therefore, I was hoping to be able to have the script fork a subprocess to do the hard stuff and...
  5. S

    Quick Perl question ..... ?

    In Perl, how can I tell whether STDIN is connected to a terminal?
  6. S

    Perl: Is one of these quicker?

    Is one of these ways of changing the first character of a string to a capital "X" significantly quicker than the other? (1) $foo = "X" . substr $foo, 1; (2) substr $foo, 0, 1 = "X"; (3) $foo =~ s/^./X/; I think the third is most readable, but is it significantly slower than the other two?
  7. S

    sed command on Apple Mac?

    Is the syntax of the BSD-derived sed command on as found the Apple Mac different from the GNU sed command as found in Linux and (as gsed) in Solaris? What, if anything, need I be aware of?
  8. S

    Is this the way creationists cook their Sunday dinner?

    One of the arguments against natural origins of life is that even if you admit that the Earth is 4.5 billion year old, that isn't enough time for all the building blocks of life to have come together, one after another, in the correct order. Do Creationists cook their Sunday dinner like this...
  9. S

    How do I find where Perl is looking for modules?

    I am writing a Perl program which I intend to release as Open Source; and it includes a section which I think is worth separating out as a module. I could put the whole lot in one file; but that would make it harder for other people to reuse the code, and isn't that the whole point of Open...
  10. S

    Will bookies take bets on future fashion trends?

    Can you place a bet on a particular item of clothing becoming fashionable next season? (There doesn't seem to be a gambling section on here.)
  11. S

    How do I find where Perl is looking for modules?

    I am writing a Perl program which I intend to release as Open Source; and it includes a section which I think is worth separating out as a module. I could put the whole lot in one file; but that would make it harder for other people to reuse the code, and isn't that the whole point of Open...
  12. S

    GTK2-perl programming question .....?

    I have a GTK window in which I want to update certain fields with values read by my script from an external device. When I call Gtk2->Main(), the perl program stops, until some event calls Gtk2->main_quit() and then it continues with the line after. What I want to be able to do is display the...
  13. S

    GTK2-perl programming question .....?

    I have a GTK window in which I want to update certain fields with values read by my script from an external device. When I call Gtk2->Main(), the perl program stops, until some event calls Gtk2->main_quit() and then it continues with the line after. What I want to be able to do is display the...
  14. S

    GTK2-perl programming question .....?

    I have a GTK window in which I want to update certain fields with values read by my script from an external device. When I call Gtk2->Main(), the perl program stops, until some event calls Gtk2->main_quit() and then it continues with the line after. What I want to be able to do is display the...
  15. S

    Suppose someone was faking up a new holy book .....?

    Suppose some con-merchant was trying to create a new religious cult, for the purpose of duping people out of large sums of money -- but you didn't know that he was actually a con-merchant. He claims to have met an angel who shew him where to find a weirdy computer disc, a bit like a CD but not...
  16. S

    Is Creationism a joke that I'm just not getting?

    Or do some people actually take it seriously?
  17. S

    Yahoo! groups API / perl module?

    I want to write a console application in Perl, that will log into one of my Yahoo! groups and parse the latest messages for me. (Eventually I'd like to run it as a cron job .....) Is there a Perl module that I can use to make this a bit easier? Some Source Code examples? Anything?!
  18. S

    Why do people say "Robin Reliant" but not "Escort Ford" ?

    In English, the adjective usually goes before the noun; so with cars, it goes make, model. Like "Renault Mégane" or "Vauxhall Corsa". So why "Robin Reliant" ?
  19. S

    Perl question: cross-platform programming help?

    I'm writing an app in Perl that I'd like to open-source. I am including an optional feature which will only work on KDE. This obviously requires a Unix-like system such as Solaris or Linux. Is there an easy way to tell from within a Perl script whether we are running on Windows?
  20. S

    To show the output of a perl program in a html page. I have acounter program in

    The easiest way is to include it the output of the counter program within an iFrame in your page: <iframe width="100" height="40" id="counter" src="/cgi-bin/counter"></iframe> (Change height and width to suit. Anything between the tags will be displayed in really ancient browsers that don't...
Back
Top