Re: I have a problem but cant find it

"Baron Schwartz" <[email protected]> Mon, 24 Mar 2008 18:27:01 -0400
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Hi,

On Mon, Mar 24, 2008 at 3:33 PM, Jake Peavy <[email protected]> wrote:
> On 3/24/08, Armando Gomez <[email protected]> wrote:
>  >
>  > Hello all!
>  >
>  >
>  > a friend send me a script  that can make a query from a MySQL into a
>  > HTML Page
>  > it has an error something like this but I dont know what is wrong
>  > the error code :
>  >
>  > Can't find string terminator "EOUsage" anywhere before EOF at
>  > returnatable.pl line 7.
>  >
>  >
>  > this is the code I am using perl for windows :
>  >
>  > #!/usr/bin/perl
>  >     use DBI;
>  >     #Get arguments from command line
>  >     ($db,$table,$out_file,$user,$pass)=@ARGV;
>  >     #Check for invalid info
>  >     unless($db && $table) {
>  >         print <<EOUsage;
>  >     Usage: $0 <database> <table> <out file> <user> <pass>
>  >     \tUnless you specify out file, STDOUT will be used.
>  >     \t(Sending an out file of '-' will generate the same result)
>  >     \tUser and Pass are optional.
>  >
>  >     EOUsage
>  >         exit();
>  >     }
>
>
>  <snip>
>
>
>  I hope someone could help me  thanks!
>  >
>
>  The terminator for a here-doc cannot be indented.  Move EOUsage to the left.

Or change the beginning to this:

print <<"   EOUsage";

(Insert the correct number of spaces/tabs so it matches the line that
terminates the here-doc).

-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]