<?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: Error PERL Script: No filehandle passed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320092#M712112</link>
    <description>I might be missing something but I can't see where $name gets set.  Possibly therefore, as there is no error checking on the "open()", maybe the "open" fails and FILEH isn't a file handle.</description>
    <pubDate>Thu, 01 Jul 2004 03:48:13 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2004-07-01T03:48:13Z</dc:date>
    <item>
      <title>Error PERL Script: No filehandle passed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320091#M712111</link>
      <description>Hello,&lt;BR /&gt;i want to run slipwire.pl on a HP-UX 11.11 System and i get a error: No filehandle passed at ./slipwire.pl line 157, &lt;GEN0&gt; line 1.&lt;BR /&gt;&lt;BR /&gt;Slipwire.pl is a script to get information about files/directories, create a hash and write this information to a database.&lt;BR /&gt;&lt;BR /&gt;The error is generated by creating the hashes.&lt;BR /&gt;..&lt;BR /&gt;    find($file_list_line);&lt;BR /&gt;&lt;BR /&gt;    sub wanted {&lt;BR /&gt;     &lt;BR /&gt;      $i++;&lt;BR /&gt;      open (FILEH, $name);&lt;BR /&gt;&lt;BR /&gt;      my $key = $name;&lt;BR /&gt;  &lt;BR /&gt;      $ctx = Digest::SHA1-&amp;gt;new;&lt;BR /&gt;      $ctx-&amp;gt;addfile(FILEH);&lt;BR /&gt;      $sha = $ctx-&amp;gt;b64digest; &lt;BR /&gt;&lt;BR /&gt;      my @fileinfo;&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;The complete script is attached.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas???? - Thanks&lt;/GEN0&gt;</description>
      <pubDate>Thu, 01 Jul 2004 03:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320091#M712111</guid>
      <dc:creator>Stefan Wusowski</dc:creator>
      <dc:date>2004-07-01T03:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error PERL Script: No filehandle passed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320092#M712112</link>
      <description>I might be missing something but I can't see where $name gets set.  Possibly therefore, as there is no error checking on the "open()", maybe the "open" fails and FILEH isn't a file handle.</description>
      <pubDate>Thu, 01 Jul 2004 03:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320092#M712112</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-07-01T03:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error PERL Script: No filehandle passed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320093#M712113</link>
      <description>Hello,&lt;BR /&gt;$name is set by find ... sub wanted ...&lt;BR /&gt;&lt;BR /&gt;If I commet OUT the create hash lines, the script is running well.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jul 2004 03:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320093#M712113</guid>
      <dc:creator>Stefan Wusowski</dc:creator>
      <dc:date>2004-07-01T03:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error PERL Script: No filehandle passed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320094#M712114</link>
      <description>Well, I imagine it does because it's the " $ctx-&amp;gt;addfile(FILEH);" that is probably causing the error.  I imagine that FILEH is not a valid file handle.&lt;BR /&gt; &lt;BR /&gt;Perhaps you could change the line " open (FILEH, $name);" to &lt;BR /&gt; &lt;BR /&gt;open (FILEH, $name) or die "ERROR: $!\n";&lt;BR /&gt; &lt;BR /&gt;This way you will see if there is an error being generated with the open.</description>
      <pubDate>Thu, 01 Jul 2004 04:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320094#M712114</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-07-01T04:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error PERL Script: No filehandle passed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320095#M712115</link>
      <description>adding&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;at the top of your script might also lead to the problem. I /always/ use those two. It also catches typo's and everyone makes typo's&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 01 Jul 2004 04:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320095#M712115</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-07-01T04:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error PERL Script: No filehandle passed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320096#M712116</link>
      <description>Hallo,&lt;BR /&gt;thanks.&lt;BR /&gt;The error is generate while the open() is try to open a FileHandle for a link and that don't work.&lt;BR /&gt;&lt;BR /&gt;;-)</description>
      <pubDate>Thu, 01 Jul 2004 05:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-perl-script-no-filehandle-passed/m-p/3320096#M712116</guid>
      <dc:creator>Stefan Wusowski</dc:creator>
      <dc:date>2004-07-01T05:19:17Z</dc:date>
    </item>
  </channel>
</rss>

