<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perl untie problem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591847#M103853</link>
    <description>Hm miniserv.pl sounds like a Webmin problem.&lt;BR /&gt;I wouldn't expect the IPC::Open3 module to be broken.&lt;BR /&gt;It rather looks that either a prerequisite isn't fulfilled, or it was used improperly.&lt;BR /&gt;  &lt;BR /&gt;Can you identify the line where your Perl code aborted?</description>
    <pubDate>Fri, 29 Jul 2005 04:01:45 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2005-07-29T04:01:45Z</dc:date>
    <item>
      <title>Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591844#M103850</link>
      <description>Hi! &lt;BR /&gt;I just got an error from my perl-program, but since I have never used tie/untie, I don't know what to do first.&lt;BR /&gt;&lt;BR /&gt;miniserv.pl: untie attempted while 1 inner references still exist at /opt/perl5/lib/5.8.6/IPC/Open3.pm line 203.&lt;BR /&gt;&lt;BR /&gt;I looked at the line 203 and I found:&lt;BR /&gt;&lt;BR /&gt;    my $kid_rdr = gensym;&lt;BR /&gt;    my $kid_wtr = gensym;&lt;BR /&gt;    my $kid_err = gensym;&lt;BR /&gt;&lt;BR /&gt;    xpipe $kid_rdr, $dad_wtr if !$dup_wtr;&lt;BR /&gt;    xpipe $dad_rdr, $kid_wtr if !$dup_rdr;&lt;BR /&gt;    xpipe $dad_err, $kid_err if !$dup_err &amp;amp;&amp;amp; $dad_err ne $dad_rdr;&lt;BR /&gt;&lt;BR /&gt;    $kidpid = $do_spawn ? -1 : xfork;&lt;BR /&gt;    if ($kidpid == 0) {  # Kid&lt;BR /&gt; # A tie in the parent should not be allowed to cause problems.&lt;BR /&gt; untie *STDIN;&lt;BR /&gt; untie *STDOUT; #this is line 203!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could anybody tell me how to find the variable, that is still tied? I couldn't find much bei Google...&lt;BR /&gt;&lt;BR /&gt;Danke!&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2005 09:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591844#M103850</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2005-07-28T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591845#M103851</link>
      <description>you probably need some close calls before the untie&lt;BR /&gt;&lt;BR /&gt;close STDIN;&lt;BR /&gt;close STDOUT;&lt;BR /&gt;untie *STDIN;&lt;BR /&gt;untie *STDOUT;&lt;BR /&gt;&lt;BR /&gt;And I don't know if the xpipe calls do other black magic;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2005 09:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591845#M103851</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-07-28T09:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591846#M103852</link>
      <description>"And I don't know if the xpipe calls do other black magic;"&lt;BR /&gt;&lt;BR /&gt;What do U mean?&lt;BR /&gt;This is actually the source of the IPC::Open3 module Open3.pm&lt;BR /&gt;&lt;BR /&gt;close didn't work unfortunately.&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 03:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591846#M103852</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2005-07-29T03:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591847#M103853</link>
      <description>Hm miniserv.pl sounds like a Webmin problem.&lt;BR /&gt;I wouldn't expect the IPC::Open3 module to be broken.&lt;BR /&gt;It rather looks that either a prerequisite isn't fulfilled, or it was used improperly.&lt;BR /&gt;  &lt;BR /&gt;Can you identify the line where your Perl code aborted?</description>
      <pubDate>Fri, 29 Jul 2005 04:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591847#M103853</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-07-29T04:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591848#M103854</link>
      <description>actually not, I have only the error msg. from above. &lt;BR /&gt;As I couldn't make RRDs module from RRDtool working on hp-ux, I rewrote my script for use with RRDp, and since than I get this errormsg. In the miniserv.pl there is a tie to STDIN and STDOUT, &lt;BR /&gt;&lt;BR /&gt;eval {&lt;BR /&gt;   package main;&lt;BR /&gt;   tie(*STDOUT, 'miniserv');&lt;BR /&gt;   tie(*STDIN, 'miniserv');&lt;BR /&gt;   do $miniserv::full;&lt;BR /&gt;   die $@ if ($@);&lt;BR /&gt;   };&lt;BR /&gt;&lt;BR /&gt;but I don't know how to find out what and where fails..&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 05:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591848#M103854</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2005-07-29T05:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591849#M103855</link>
      <description>eval {&lt;BR /&gt;package main;&lt;BR /&gt;tie(*STDOUT, 'miniserv');&lt;BR /&gt;tie(*STDIN, 'miniserv');&lt;BR /&gt;do $miniserv::full;&lt;BR /&gt;untie *STDOUT; # &amp;lt;--&lt;BR /&gt;untie *STDIN;  # &amp;lt;--&lt;BR /&gt;die $@ if ($@);&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 29 Jul 2005 06:05:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591849#M103855</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-07-29T06:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591850#M103856</link>
      <description>No, ..:( this didn't work..I quess there must be a very special error that cannot be found out directly. Thank you for your help.&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 06:41:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591850#M103856</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2005-07-29T06:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perl untie problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591851#M103857</link>
      <description>I haven't used tied file handles yet,&lt;BR /&gt;as you are.&lt;BR /&gt;I guess this is more for the advanced Perl hackers like procura.&lt;BR /&gt;So far I've only used tied hashes as they are used easiest of all.&lt;BR /&gt;As far as my memory serves me correctly one has to implement for each valid operation on the thingy (i.e. scalar, array, hash, filehandle, object reference) a method in order for tying to work.&lt;BR /&gt;Maybe you need to override the close method for the filehandle tie?&lt;BR /&gt; &lt;BR /&gt;Have you consulted perldoc perltie yet?&lt;BR /&gt; &lt;BR /&gt;You could also look at the code from your Perl installation to get an idea how implementation of tied variables works.&lt;BR /&gt;I'd say a pretty easy one to start with was Config.pm, though it's tying a hash rather than a file handle.&lt;BR /&gt;Anyway, have a look at "perldoc -m Config"&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 07:32:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-untie-problem/m-p/3591851#M103857</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-07-29T07:32:52Z</dc:date>
    </item>
  </channel>
</rss>

