MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Multiple Sub bug? (was: Getting closer...but still no cigar)



Brian Knotts wrote:
> Ah ha!
> 
> The subroutine is not being recognized:
> [22/October/1999:09:51:47 -0700] test /cgi-bin/test/process Undefined perl sub
> calc_item
> So, this looks to be the "multiple subs" problem (bug?).
> 
> Anyone have a solution?
> 
> I have two subs the first one starting with:
> Sub <<EOF
> sub form_mail {
> and ending with:
> }
> EOF
> The second one starting with:
> Sub <<EOG
> sub calc_item {
> and ending with
> }
> EOG
> 
> This breaks *both* subroutines.
> What is the proper way (if any) to do multiple Subs? Must I disable Global Sub?


Maybe you have to escaped some special chars for perl? E.g. this...

             my $weight =
tag_data(\"products\",\"weight\",$item->{'code'}) || 0;
                                   ^^        ^^ ^^      ^^

Regards,

Joachim

BTW: I am on vacation at sunday! :-)))
-- 
-------------Hans-Joachim Leidinger---------------------



Search for: Match: Format: Sort by: