Do you know how I can find out more about the timeout not working when I use the `<system command>` method?

You might want to look at your local (ActiveState?) perl documentation about the alarm function. Perhaps it's not implemented, or partially implemented? Or Google. Don't know what else to tell you.

Do you know what makes this method playing with fire?

Using symbolic references is generally considered a bit risky, unless you really know what you are doing, because (among other reasons) you can cause some very hard to find bugs when you start using them. Do a Super Search for 'symbolic references' (or 'refs', etc.) to find out what other Monks have to say about them. Here is a recent thread about them, to get you started: variables names used to define variables. Basically, they can be a handy feature, but only if you're careful, and there is frequently a better way to do things.

--
edan (formerly known as 3dan)


In reply to Re: Re: Re: Re: Re: Passing function to a function using \&<function name> method by edan
in thread Passing function to a function using \&<function name> method by rich_d_thomas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.