<?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: run perl script error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785456#M23288</link>
    <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;but have the below message , could advise again ?  thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;syntax error near unexpected token `('&lt;BR /&gt;&lt;BR /&gt;`use DBI ();'</description>
    <pubDate>Wed, 10 May 2006 00:54:08 GMT</pubDate>
    <dc:creator>ivychung2</dc:creator>
    <dc:date>2006-05-10T00:54:08Z</dc:date>
    <item>
      <title>run perl script error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785454#M23286</link>
      <description>I have install a perl module "DBI" to the RH server ,&lt;BR /&gt;now I try a perl script ( the script as below ) then pop the error "-bash: use: command not found" ,  could advise what is the error mean , is "use" a command in linux ? thx.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;use DBI;&lt;BR /&gt;use strict;&lt;BR /&gt;"&lt;BR /&gt;"&lt;BR /&gt;"</description>
      <pubDate>Tue, 09 May 2006 22:12:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785454#M23286</guid>
      <dc:creator>ivychung2</dc:creator>
      <dc:date>2006-05-09T22:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: run perl script error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785455#M23287</link>
      <description>"use" is a perl command but you need to use the  right syntax.&lt;BR /&gt;&lt;BR /&gt;As DBI is a module try this syntax:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;use DBI ();&lt;BR /&gt;use strict;&lt;BR /&gt;&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Nigel</description>
      <pubDate>Tue, 09 May 2006 22:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785455#M23287</guid>
      <dc:creator>Nigel Halliday</dc:creator>
      <dc:date>2006-05-09T22:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: run perl script error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785456#M23288</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;but have the below message , could advise again ?  thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;syntax error near unexpected token `('&lt;BR /&gt;&lt;BR /&gt;`use DBI ();'</description>
      <pubDate>Wed, 10 May 2006 00:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785456#M23288</guid>
      <dc:creator>ivychung2</dc:creator>
      <dc:date>2006-05-10T00:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: run perl script error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785457#M23289</link>
      <description>I suggest you to rewrite this little test script from scratch.&lt;BR /&gt;You could have some hidden characters in it. I had the same message at a time removing the hidden characters fixed it.&lt;BR /&gt;BTW, I have the same module on station installed by default...</description>
      <pubDate>Wed, 10 May 2006 01:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785457#M23289</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-05-10T01:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: run perl script error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785458#M23290</link>
      <description>Are you sure /usr/bin/perl exists and is executable?&lt;BR /&gt;The error message suggests that bash is processing your perl script, not perl.&lt;BR /&gt;&lt;BR /&gt;So check if /usr/bin/perl exists.&lt;BR /&gt;Useful commands to find perl:&lt;BR /&gt;locate perl&lt;BR /&gt;whereis perl&lt;BR /&gt;find / -name perl&lt;BR /&gt;&lt;BR /&gt;Suppose your script is called script.pl. Remove the first line (temporarily) and execute from your bash prompt #:&lt;BR /&gt;# perl -w script.pl&lt;BR /&gt;If necessary: type full pathname i.s.o. perl, e.g. /usr/local/bin/perl &lt;BR /&gt;&lt;BR /&gt;Also try hello.pl &lt;A href="http://www.devdaily.com/perl/edu/articles/pl010001.shtml" target="_blank"&gt;http://www.devdaily.com/perl/edu/articles/pl010001.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;JP.&lt;BR /&gt;&lt;BR /&gt;PS. &lt;BR /&gt;Check &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;;-)&lt;BR /&gt;</description>
      <pubDate>Wed, 10 May 2006 14:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-perl-script-error/m-p/3785458#M23290</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2006-05-10T14:25:56Z</dc:date>
    </item>
  </channel>
</rss>

