<?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 Scripting Again in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506140#M728469</link>
    <description>Thanks for the help.  The POSIX works well enough that&lt;BR /&gt;I'll stick with it for now.  Still I'll play around with the other format.&lt;BR /&gt;&lt;BR /&gt;Just wish one of my 2 O'Reilly books had date functions!&lt;BR /&gt;Hmmmmmm.....&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
    <pubDate>Fri, 16 Mar 2001 20:27:30 GMT</pubDate>
    <dc:creator>Shannon Petry</dc:creator>
    <dc:date>2001-03-16T20:27:30Z</dc:date>
    <item>
      <title>Perl Scripting Again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506137#M728466</link>
      <description>Okay, it does not work.  I syntaxed it as perscribed....&lt;BR /&gt;&lt;BR /&gt;use Time::Local; &lt;BR /&gt;$TIME = timelocal($sec, $min, $hours, $mday, $mon, $year); &lt;BR /&gt;&lt;BR /&gt;print $time;&lt;BR /&gt;&lt;BR /&gt;%&amp;gt; perl test.pl&lt;BR /&gt;Day '' out of range 1..31 at test.pl line 2&lt;BR /&gt;%&amp;gt; more test.pl&lt;BR /&gt;use Time::Local;&lt;BR /&gt;$TIME = timelocal($sec,$mim,$hour,$mday,$mon,$year);&lt;BR /&gt;print ($TIME);&lt;BR /&gt;&lt;BR /&gt;Using the other suggestion of POSIX&lt;BR /&gt;I.E.&lt;BR /&gt;use POSIX;&lt;BR /&gt;$TIME = POSIX::strftime('%y%m%d',localtime(time));&lt;BR /&gt;works though.&lt;BR /&gt;&lt;BR /&gt;It does not really mater to me how I get the time, it is for read only so I dont need to modify.  The last question then is their any problems with security and CGI adding "use POSIX" to the script?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help</description>
      <pubDate>Fri, 16 Mar 2001 17:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506137#M728466</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-03-16T17:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Scripting Again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506138#M728467</link>
      <description>Shows me to run it before I make it public.&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;use Time::Local; &lt;BR /&gt;($sec, $min, $hours, $mday, $mon, $year) = localtime;&lt;BR /&gt;$year = $year + 1900;&lt;BR /&gt;&lt;BR /&gt;I had the function backwards.&lt;BR /&gt;&lt;BR /&gt;$year is the years past 1900, so have to add 1900 to it.</description>
      <pubDate>Fri, 16 Mar 2001 18:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506138#M728467</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-03-16T18:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Scripting Again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506139#M728468</link>
      <description>Hi Shannon,&lt;BR /&gt;&lt;BR /&gt;As POSIX is a standard module distributed with perl core, I do not think there is any security problem here.&lt;BR /&gt;&lt;BR /&gt;To limit use of POSIX module, instead of&lt;BR /&gt;&lt;BR /&gt;use POSIX&lt;BR /&gt;&lt;BR /&gt;you can say:&lt;BR /&gt;&lt;BR /&gt;use POSIX qw(:time_h)&lt;BR /&gt;&lt;BR /&gt;which will include only functions related to time_h (like strftime), rather than the whole POSIX stuff.&lt;BR /&gt;&lt;BR /&gt;HTH !&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;Fred.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Mar 2001 19:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506139#M728468</guid>
      <dc:creator>Frederic Soriano</dc:creator>
      <dc:date>2001-03-16T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Scripting Again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506140#M728469</link>
      <description>Thanks for the help.  The POSIX works well enough that&lt;BR /&gt;I'll stick with it for now.  Still I'll play around with the other format.&lt;BR /&gt;&lt;BR /&gt;Just wish one of my 2 O'Reilly books had date functions!&lt;BR /&gt;Hmmmmmm.....&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Fri, 16 Mar 2001 20:27:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripting-again/m-p/2506140#M728469</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-03-16T20:27:30Z</dc:date>
    </item>
  </channel>
</rss>

