<?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 Help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661089#M20337</link>
    <description>I am not a perl person so I don't understand what you mean by that. I just want to make this as simple as possible. In the dislist line, whats is the syntaxt to add multiple e-mail addresses.</description>
    <pubDate>Mon, 31 Oct 2005 10:40:55 GMT</pubDate>
    <dc:creator>Ragni Singh</dc:creator>
    <dc:date>2005-10-31T10:40:55Z</dc:date>
    <item>
      <title>Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661084#M20332</link>
      <description>Can anyone tell me what I'm doing wrong with this script..&lt;BR /&gt;&lt;BR /&gt;What is wrong with my syntax error.What I am doing in removing those 2 names from teh distribution list and adding my name to it. Also, when I print my name, I am only getting "schand.com" and it seems to be omitting "@pacificex". POints will be assigned. &lt;BR /&gt;&lt;BR /&gt;458  if($sth-&amp;gt;execute){&lt;BR /&gt;    459   my $ntuples = $sth-&amp;gt;rows;&lt;BR /&gt;    460   if ($ntuples &amp;gt; 0) {&lt;BR /&gt;    461    for ( my $i=0; $i &amp;lt; $ntuples; $i++) {&lt;BR /&gt;    462     @row = $sth-&amp;gt;fetchrow;                # Get a row&lt;BR /&gt;    463     $row[0] = &amp;amp;clip($row[0]);&lt;BR /&gt;    464     if ($row[0] != "parmstrong@pacificex.com") || ($row[0] != "bburke@pacificex.com") {&lt;BR /&gt;    465     $distList .=  "$row[0]; ";&lt;BR /&gt;    466    }&lt;BR /&gt;    467    }&lt;BR /&gt;    468    }&lt;BR /&gt;    469  }else{  # PGRES_TUPLES_OK is not OKAY&lt;BR /&gt;    470    die "Execution Error, Possible Parse error in field. Check your input&lt;BR /&gt;$DBI::errst";&lt;BR /&gt;    471  }&lt;BR /&gt;    472         $distList .= "schand@pacificex.com";&lt;BR /&gt;    473 }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;syntax error at secdaily.test line 464, near ") ||"&lt;BR /&gt;syntax error at secdaily.test line 469, near "}else"</description>
      <pubDate>Mon, 31 Oct 2005 09:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661084#M20332</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-10-31T09:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661085#M20333</link>
      <description>For start add backslash \ before each @ sign.&lt;BR /&gt;What errors have you left with now?</description>
      <pubDate>Mon, 31 Oct 2005 09:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661085#M20333</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2005-10-31T09:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661086#M20334</link>
      <description>You need to escape the @ character.&lt;BR /&gt;Otherwise perl tries to acces the array&lt;BR /&gt;@pacificex.&lt;BR /&gt;&lt;BR /&gt;Try using &lt;BR /&gt;$distList .= "schand\@pacificex.com";</description>
      <pubDate>Mon, 31 Oct 2005 09:56:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661086#M20334</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2005-10-31T09:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661087#M20335</link>
      <description>Thanks Bill, if I want to add multiple people to the distList, what would my syntax be on this line...&lt;BR /&gt;&lt;BR /&gt;$distList .="schand\@pacificex.com"&lt;BR /&gt;&lt;BR /&gt;I want to add john, jon to this list&lt;BR /&gt;&lt;BR /&gt;Thanks and I will give points in the end.</description>
      <pubDate>Mon, 31 Oct 2005 10:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661087#M20335</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-10-31T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661088#M20336</link>
      <description>I would think it's easier to use an array instead of a scalar, and push the other recipients on the array.&lt;BR /&gt; &lt;BR /&gt;push @distList, qw(john@johns.com harry@harrys.org);&lt;BR /&gt; &lt;BR /&gt;or if the recipients all have the same MX,&lt;BR /&gt;and you want to stick to the scalar&lt;BR /&gt;&lt;BR /&gt;$dom = 'our.org'; &lt;BR /&gt;$distList = join(' ',map $_.'@'.$dom, qw(john harry));&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 31 Oct 2005 10:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661088#M20336</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-10-31T10:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661089#M20337</link>
      <description>I am not a perl person so I don't understand what you mean by that. I just want to make this as simple as possible. In the dislist line, whats is the syntaxt to add multiple e-mail addresses.</description>
      <pubDate>Mon, 31 Oct 2005 10:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661089#M20337</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-10-31T10:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661090#M20338</link>
      <description>You need to change string 464:&lt;BR /&gt;&lt;BR /&gt;from:&lt;BR /&gt;if ($row[0] != "parmstrong@pacificex.com") || ($row[0] != "bburke@pacificex.com") {&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;if ( ($aaa != "parmstrong\@pacificex.com") || ($aaa != "bburke\@pacificex.com") ) {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Tue, 01 Nov 2005 02:45:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661090#M20338</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2005-11-01T02:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661091#M20339</link>
      <description>Oooops, sorry.&lt;BR /&gt;&lt;BR /&gt;You need to change string 464:&lt;BR /&gt;&lt;BR /&gt;from:&lt;BR /&gt;if ($row[0] != "parmstrong@pacificex.com") || ($row[0] != "bburke@pacificex.com") {&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;if ( ($row[0] != "parmstrong\@pacificex.com") || ($row[0] != "bburke\@pacificex.com") ) {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Tue, 01 Nov 2005 02:56:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661091#M20339</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2005-11-01T02:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661092#M20340</link>
      <description>First, you need an outer set of parentheses around the entire IF expression:&lt;BR /&gt;if ( ($row[0] != "parmstrong@pacificex.com") || ($row[0] != "bburke@pacificex.com") ) {&lt;BR /&gt;&lt;BR /&gt;It does not matter, it will not work anyway. "!=" is a NUMERIC comparison. Both "parmstrong@pacificex.com" and "bburke@pacificex.com" evaluate to 1.&lt;BR /&gt;Use "ne" for string comparisons.</description>
      <pubDate>Tue, 01 Nov 2005 08:48:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3661092#M20340</guid>
      <dc:creator>Sheldon Smith</dc:creator>
      <dc:date>2005-11-01T08:48:48Z</dc:date>
    </item>
  </channel>
</rss>

