<?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: Problem with perl command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904650#M404801</link>
    <description>What is the error message?&lt;BR /&gt;&lt;BR /&gt;Check to make sure each is running the same perl:&lt;BR /&gt;&lt;BR /&gt;which perl&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
    <pubDate>Tue, 31 May 2005 07:07:53 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2005-05-31T07:07:53Z</dc:date>
    <item>
      <title>Problem with perl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904649#M404800</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;does anybody know why this command works fine on hp-ux 11.11 bur doesn't work on hp-ux 11.00:&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;perl -e 'print scalar localtime(time-86400)'&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;on both nodes I have perl 5.8.0_B0.</description>
      <pubDate>Tue, 31 May 2005 07:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904649#M404800</guid>
      <dc:creator>Lukasz_6</dc:creator>
      <dc:date>2005-05-31T07:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with perl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904650#M404801</link>
      <description>What is the error message?&lt;BR /&gt;&lt;BR /&gt;Check to make sure each is running the same perl:&lt;BR /&gt;&lt;BR /&gt;which perl&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 31 May 2005 07:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904650#M404801</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-05-31T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with perl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904651#M404802</link>
      <description>From node where everything works fine:&lt;BR /&gt;------------------------------------------&lt;BR /&gt;$ perl -e 'print scalar localtime(time-86400)'&lt;BR /&gt;Mon May 30 14:10:12 2005&lt;BR /&gt;$&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;and the second one, where function scalar doesn't work:&lt;BR /&gt;------------------------------------------&lt;BR /&gt;$ perl -e 'print scalar localtime(time-86400)'&lt;BR /&gt;$&lt;BR /&gt;------------------------------------------&lt;BR /&gt;as you see there is no error.&lt;BR /&gt;&lt;BR /&gt;When I am using this commacnd without func. scalar it works fine on both nodes.:&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;$  perl -e 'print localtime(time-86400)'&lt;BR /&gt;35121430410511491&lt;BR /&gt;$&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;&lt;BR /&gt;both nodes uses the same path:&lt;BR /&gt;/usr/contrib/bin/perl&lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2005 07:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904651#M404802</guid>
      <dc:creator>Lukasz_6</dc:creator>
      <dc:date>2005-05-31T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with perl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904652#M404803</link>
      <description>I bet it's a $PATH problem. The scalar syntax not being supported in perl4 makes me thing you are using an ancient version of perl&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 38 &amp;gt; perl -le 'print localtime(time-86400)'&lt;BR /&gt;49181430410511491&lt;BR /&gt;a5:/u/usr/merijn 39 &amp;gt; perl -le 'print scalar localtime(time-86400)'&lt;BR /&gt;Mon May 30 14:18:52 2005&lt;BR /&gt;a5:/u/usr/merijn 40 &amp;gt; perl4 -le 'print localtime(time-86400)'&lt;BR /&gt;58181430410511491&lt;BR /&gt;a5:/u/usr/merijn 41 &amp;gt; perl4 -le 'print scalar localtime(time-86400)'&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 42 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;If you'd have used -w, a rather obscure message could have pointed you there&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 42 &amp;gt; perl4 -wle 'print scalar localtime(time-86400)'&lt;BR /&gt;Use of uninitialized variable at /tmp/perl-ea28878 line 1.&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 43 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Check your version with&lt;BR /&gt;&lt;BR /&gt;# perl -v&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Tue, 31 May 2005 07:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904652#M404803</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-05-31T07:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with perl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904653#M404804</link>
      <description>Yup, again check your perl paths:&lt;BR /&gt;&lt;BR /&gt;which perl&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 31 May 2005 07:23:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904653#M404804</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-05-31T07:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with perl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904654#M404805</link>
      <description>&lt;BR /&gt;localtime function uses strftime and ctime to get time values.&lt;BR /&gt;&lt;BR /&gt;try using Time::Local and see whether it works for you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Tue, 31 May 2005 07:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904654#M404805</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-31T07:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with perl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904655#M404806</link>
      <description>Thanks you all folks,&lt;BR /&gt;the problem was with wrong path to perl - swlist show perl 5.8.0_B0 in /opt/perl/5.8.0&lt;BR /&gt;but which perl shows /usr/contrib/bin/perl.&lt;BR /&gt;When I used direct path /opt/perl/5.8.0/bin/perl it works fine on both nodes.</description>
      <pubDate>Tue, 31 May 2005 07:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-perl-command/m-p/4904655#M404806</guid>
      <dc:creator>Lukasz_6</dc:creator>
      <dc:date>2005-05-31T07:57:34Z</dc:date>
    </item>
  </channel>
</rss>

