in reply to Re: Edit in place (part2)
in thread Edit in place (part2)

No, however it's hanging before the regex. In a truss you see the somesub() and then it sleeps. I'm just grasping at straws, but I feel that it's about the ARGV. The <> is getting mucked somehow.

Replies are listed 'Best First'.
Re^3: Edit in place (part2)
by CountOrlok (Friar) on May 01, 2006 at 21:03 UTC
    Can you post the code that is in somesub()?
    -imran

      It returns an IP address in the form of 1.2.3.4. I cannot post my code on a public forum (sorry).
      -j

        Seems to me that CountOrlok is on to something there. If you replace the sub with a string constant does the problem go away?

        Perhaps you need to examine the contents of the sub. Presuming that that is where the problem is, try removing stuff from it until the problem goes away. If you can't find the issue that way, strip the code down to the point where you can show it to us and post it as a new SoPW.


        DWIM is Perl's answer to Gödel

        Then simplify the function until either 1) the error goes away (in which case you found the problem), or 2) the code is safe to post. How come you're not using Socket's inet_ntoa anyway? Example