<?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 script question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-question/m-p/3108780#M148402</link>
    <description>Slight change will do the job:&lt;BR /&gt;&lt;BR /&gt; if ($ftpid eq "zzz"){&lt;BR /&gt;foreach $file (@{$ftpFileL{$ftpid}}){&lt;BR /&gt;$basename = basename($file);&lt;BR /&gt;$filename = "./$basename"&lt;BR /&gt;&lt;BR /&gt;if ( condition for these 4 files){&lt;BR /&gt;else&lt;BR /&gt;   $filename = "./$filename.$mydate[4]$mydate[3]$mydate[5]");&lt;BR /&gt;}&lt;BR /&gt;copy($file,"$filename");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You will have to play a bit to get it to work.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Mon, 03 Nov 2003 11:35:22 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-11-03T11:35:22Z</dc:date>
    <item>
      <title>Perl script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-question/m-p/3108778#M148400</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I need to do some modification in perl script here's the syntex&lt;BR /&gt;&lt;BR /&gt; if ($ftpid eq "zzz"){&lt;BR /&gt;                foreach $file (@{$ftpFileL{$ftpid}}){&lt;BR /&gt;                        $basename = basename($file);&lt;BR /&gt;                        copy($file,"./$basename.$mydate[4]$mydate[3]$mydate[5]");&lt;BR /&gt;                        }&lt;BR /&gt;                }&lt;BR /&gt;&lt;BR /&gt;Right now we are putting the time stamp on each file but for 4 specific files we don't want to put time stamp and for other we want. So can someone help me out here.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 03 Nov 2003 11:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-question/m-p/3108778#M148400</guid>
      <dc:creator>Anthony khan</dc:creator>
      <dc:date>2003-11-03T11:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-question/m-p/3108779#M148401</link>
      <description>Why not keep a hash of filenames instead of an array and then just delete the ones you dont want to process.&lt;BR /&gt; &lt;BR /&gt;Load you hash with $filename{$file}=$file;&lt;BR /&gt; &lt;BR /&gt;delete them with something like delete $filename{myfile1};delete $filename{myfile2} etc;&lt;BR /&gt; &lt;BR /&gt;go through them with&lt;BR /&gt; &lt;BR /&gt;foreach $hashfile ( keys %filenames){&lt;BR /&gt; do something with $hashfile which is the name of the file&lt;BR /&gt;}&lt;BR /&gt; &lt;BR /&gt;Just a thought</description>
      <pubDate>Mon, 03 Nov 2003 11:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-question/m-p/3108779#M148401</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-03T11:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-question/m-p/3108780#M148402</link>
      <description>Slight change will do the job:&lt;BR /&gt;&lt;BR /&gt; if ($ftpid eq "zzz"){&lt;BR /&gt;foreach $file (@{$ftpFileL{$ftpid}}){&lt;BR /&gt;$basename = basename($file);&lt;BR /&gt;$filename = "./$basename"&lt;BR /&gt;&lt;BR /&gt;if ( condition for these 4 files){&lt;BR /&gt;else&lt;BR /&gt;   $filename = "./$filename.$mydate[4]$mydate[3]$mydate[5]");&lt;BR /&gt;}&lt;BR /&gt;copy($file,"$filename");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You will have to play a bit to get it to work.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 03 Nov 2003 11:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-question/m-p/3108780#M148402</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-03T11:35:22Z</dc:date>
    </item>
  </channel>
</rss>

