<?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 Perl scalar help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004330#M47800</link>
    <description>All,&lt;BR /&gt;&lt;BR /&gt;How do I assign the following to a variable, or print to a file.&lt;BR /&gt;&lt;BR /&gt;print scalar localtime($event-&amp;gt;{'TimeGenerated'});&lt;BR /&gt;&lt;BR /&gt;output:  Wed Sep 20 08:01:36 2006&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I'm looking to get out of above output is the hour. (08)&lt;BR /&gt;&lt;BR /&gt;Appreciate all help.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Sep 2006 07:23:21 GMT</pubDate>
    <dc:creator>J. Callender</dc:creator>
    <dc:date>2006-09-20T07:23:21Z</dc:date>
    <item>
      <title>Perl scalar help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004330#M47800</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;How do I assign the following to a variable, or print to a file.&lt;BR /&gt;&lt;BR /&gt;print scalar localtime($event-&amp;gt;{'TimeGenerated'});&lt;BR /&gt;&lt;BR /&gt;output:  Wed Sep 20 08:01:36 2006&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I'm looking to get out of above output is the hour. (08)&lt;BR /&gt;&lt;BR /&gt;Appreciate all help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Sep 2006 07:23:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004330#M47800</guid>
      <dc:creator>J. Callender</dc:creator>
      <dc:date>2006-09-20T07:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Perl scalar help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004331#M47801</link>
      <description>try:&lt;BR /&gt;$hour=localtime($event-&amp;gt;{'TimeGenerated'});&lt;BR /&gt;$hour=~s/.*?\s+(\d+?)\:.*/$1/;&lt;BR /&gt;print $hour;</description>
      <pubDate>Wed, 20 Sep 2006 07:47:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004331#M47801</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-09-20T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Perl scalar help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004332#M47802</link>
      <description>OK it's easy:&lt;BR /&gt;&lt;BR /&gt;$tmp=scalar localtime($event-&amp;gt;{'TimeGenerated'});&lt;BR /&gt;&lt;BR /&gt;@temp = split(" ",$tmp);&lt;BR /&gt;$time = @temp[30];&lt;BR /&gt;@temp = split(":",$time);&lt;BR /&gt;$hour = @temp[0];&lt;BR /&gt;print $hour;</description>
      <pubDate>Wed, 20 Sep 2006 07:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004332#M47802</guid>
      <dc:creator>g33k</dc:creator>
      <dc:date>2006-09-20T07:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Perl scalar help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004333#M47803</link>
      <description>Thanks,  Alexander.&lt;BR /&gt;&lt;BR /&gt;Thread Close</description>
      <pubDate>Wed, 20 Sep 2006 07:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scalar-help/m-p/5004333#M47803</guid>
      <dc:creator>J. Callender</dc:creator>
      <dc:date>2006-09-20T07:50:51Z</dc:date>
    </item>
  </channel>
</rss>

