<?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: How to split a string separated by a dot in perl? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292658#M496667</link>
    <description>Have you tried using single quotes,&lt;BR /&gt;($First,$Last) = split '\.',"a.b";  seem to be working for me.</description>
    <pubDate>Tue, 01 Jun 2004 14:25:34 GMT</pubDate>
    <dc:creator>Abdul Rahiman</dc:creator>
    <dc:date>2004-06-01T14:25:34Z</dc:date>
    <item>
      <title>How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292655#M496664</link>
      <description>&lt;P&gt;I have a string, say, First.Last and want to split it on the dot. I use the following perl code:&lt;BR /&gt;($First,$Last) = split "." , $string;&lt;BR /&gt;I have also used:&lt;BR /&gt;($First,$Last) = split '.', $string;&lt;BR /&gt;And:&lt;BR /&gt;($First,$Last) = split /./, $string;&lt;BR /&gt;And have put parens around it:&lt;BR /&gt;($First, $Last) = split (".", $string);&lt;BR /&gt;But I get nothing! If the string is separated by any other character (comma or slash) it works! How can I split on a dot?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;jls&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved from HP-UX&amp;gt;System Administration to &amp;nbsp;HP-UX &amp;gt; languages. -HP Forum Moderator&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 00:34:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292655#M496664</guid>
      <dc:creator>Joel Shank</dc:creator>
      <dc:date>2014-07-07T00:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292656#M496665</link>
      <description>assuming you are talking about perl, with my limited perl knowledge, . character is considered as wildcard and could be interpreted in unexpected ways. For instance a. can be used to present :&lt;BR /&gt;&lt;BR /&gt;a34&lt;BR /&gt;apple&lt;BR /&gt;at&lt;BR /&gt;...&lt;BR /&gt;and so on. &lt;BR /&gt;&lt;BR /&gt;so your dot may be getting interpretted as any character. Did you try escaping it with a backslash "\" ?</description>
      <pubDate>Tue, 01 Jun 2004 13:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292656#M496665</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-06-01T13:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292657#M496666</link>
      <description>Yes, I have also tried escaping it: &lt;BR /&gt;($First,$Last) = split "\.", $string;&lt;BR /&gt;&lt;BR /&gt;It still does not work.</description>
      <pubDate>Tue, 01 Jun 2004 14:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292657#M496666</guid>
      <dc:creator>Joel Shank</dc:creator>
      <dc:date>2004-06-01T14:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292658#M496667</link>
      <description>Have you tried using single quotes,&lt;BR /&gt;($First,$Last) = split '\.',"a.b";  seem to be working for me.</description>
      <pubDate>Tue, 01 Jun 2004 14:25:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292658#M496667</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-01T14:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292659#M496668</link>
      <description>Yes, I've used single quotes.  I should have indicated that I am using perl v5.6.0 for HPUX.&lt;BR /&gt;&lt;BR /&gt;I am really at a loss here.  I need to be able to split on the dot.  I hope someone out there can help me...&lt;BR /&gt;&lt;BR /&gt;jls</description>
      <pubDate>Tue, 01 Jun 2004 14:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292659#M496668</guid>
      <dc:creator>Joel Shank</dc:creator>
      <dc:date>2004-06-01T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292660#M496669</link>
      <description>($first, $last) = split(/\./, $string);</description>
      <pubDate>Tue, 01 Jun 2004 14:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292660#M496669</guid>
      <dc:creator>Paul F. Carlson</dc:creator>
      <dc:date>2004-06-01T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292661#M496670</link>
      <description>Paul's method works, as I use it all the time to split IP's (though with more variables on the left side). No points here please!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 01 Jun 2004 14:43:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292661#M496670</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-06-01T14:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292662#M496671</link>
      <description>($First,$Last) = split '\.',$string;&lt;BR /&gt;This works on HP-UX v11.11 and perl version 5.005_02</description>
      <pubDate>Tue, 01 Jun 2004 14:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/3292662#M496671</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-01T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string separated by a dot in perl?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/6530200#M496672</link>
      <description>&lt;P&gt;Thanks for example&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jul 2014 11:12:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-split-a-string-separated-by-a-dot-in-perl/m-p/6530200#M496672</guid>
      <dc:creator>meetlesli</dc:creator>
      <dc:date>2014-07-06T11:12:44Z</dc:date>
    </item>
  </channel>
</rss>

