<?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: killing script (Perl) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-script-perl/m-p/4576602#M679201</link>
    <description>Tx, James&lt;BR /&gt;Yes it works, I need to take a break.&lt;BR /&gt;Tx again &lt;BR /&gt;&lt;BR /&gt;V</description>
    <pubDate>Tue, 02 Feb 2010 20:11:01 GMT</pubDate>
    <dc:creator>Victor Mo</dc:creator>
    <dc:date>2010-02-02T20:11:01Z</dc:date>
    <item>
      <title>killing script (Perl)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-script-perl/m-p/4576600#M679199</link>
      <description>Hi, guys !&lt;BR /&gt;I can't understand why my script where I was processing files witn .zip extension using:&lt;BR /&gt;...&lt;BR /&gt;opendir(DIR, "$dirr");&lt;BR /&gt;@files = grep(/\.zip$/,readdir(DIR);&lt;BR /&gt;closedir(DIR);&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;stopped working, nothing goes into @files now, I ran simple test script that pasted below and same result, it works with &lt;WHILE&gt; and doesn't with @files, tried Everything I could imagine, and still can' get why -(.&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;Vic&lt;BR /&gt;-------------------- my test script&lt;BR /&gt;#!/usr/local/bin/perl&lt;BR /&gt;&lt;BR /&gt;$dirr="/home/gemsdev/tidalgems";&lt;BR /&gt;print " #1 Opening  dir $dirr\n";&lt;BR /&gt;&lt;BR /&gt;opendir (DIRR,$dirr)  or die "#1 can't open DIRR $dirr\n";&lt;BR /&gt;while ($igot = readdir(DIRR)) {&lt;BR /&gt;     print "#1 list:  $igot\n";&lt;BR /&gt;}&lt;BR /&gt;closedir(DIRR);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;print " #2 Opening  dir $dirr\n";&lt;BR /&gt;opendir (DIRR,$dirr)  or die "#2 can't open DIRR $dirr\n";&lt;BR /&gt; @files=readdir(DIR);&lt;BR /&gt;print "#2 array: @files\n";&lt;BR /&gt;closedir(DIRR);&lt;BR /&gt;&lt;/WHILE&gt;</description>
      <pubDate>Tue, 02 Feb 2010 18:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-script-perl/m-p/4576600#M679199</guid>
      <dc:creator>Victor Mo</dc:creator>
      <dc:date>2010-02-02T18:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: killing script (Perl)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-script-perl/m-p/4576601#M679200</link>
      <description>Hi Victor:&lt;BR /&gt;&lt;BR /&gt;This works:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my $dirr = shift || '.';&lt;BR /&gt;opendir(DIR, "$dirr") or die;&lt;BR /&gt;my @files = grep( /\.zip$/, readdir(DIR) );&lt;BR /&gt;closedir(DIR);&lt;BR /&gt;print "'@files'\n";&lt;BR /&gt;&lt;BR /&gt;...at the least, you were missing a ')'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 Feb 2010 18:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-script-perl/m-p/4576601#M679200</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-02T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: killing script (Perl)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-script-perl/m-p/4576602#M679201</link>
      <description>Tx, James&lt;BR /&gt;Yes it works, I need to take a break.&lt;BR /&gt;Tx again &lt;BR /&gt;&lt;BR /&gt;V</description>
      <pubDate>Tue, 02 Feb 2010 20:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-script-perl/m-p/4576602#M679201</guid>
      <dc:creator>Victor Mo</dc:creator>
      <dc:date>2010-02-02T20:11:01Z</dc:date>
    </item>
  </channel>
</rss>

