Re: I have a problem but cant find it

"Jake Peavy" <[email protected]> Mon, 24 Mar 2008 13:33:12 -0600
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
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.

-- 
-jp

You know something that would really make me applaud? A guy gets stuck in
quicksand, then sinks, then suddenly comes shooting out, riding on water
skis! How do they do that?!

deepthoughtsbyjackhandy.com