Re: [Cgi-session-user] cgi session - problem with packaging
Brought to you by:
sherzodr
From: Mark S. <ma...@su...> - 2005-10-19 17:57:28
|
On Wed, Oct 19, 2005 at 10:12:26PM +0530, Senthil Nathan wrote: > Hi Sherzod, > > I'm trying to use the session module and could implement shopping cart with > min. features. > > But when I try to put into a package, the whole stuff, right from session > creation or loading existing session to adding/deleting/removing to cart > etc.., the package gives some minor problems, which I couldnt figure it out. Do you use a text editor with syntax highlighting? The broken syntax highlighting helped me go directly to the syntax error around line 35. You had tried to comment out a line, but left a few characters dangling. Due to the nature of the error, the parser reported the issue later in the code. Some other helpful debugging tips: - perl -cw cart.pm fails to even compile the code. - Commenting out the whole subroutine around line 82 doesn't make a difference. That's a sign the problem is elsewhere. If you are starting from scratch, you might look at the Handel framework: http://handelframework.com/ ( I haven't tried it myself. ) Mark > > I have attached the 2 files, cart.pm <http://cart.pm> and cart.cgi with > this. > And this is the error I get, > Software error: > > Bad name after name' at cart.pm <http://cart.pm> line 82. > > Can you please help me to figure out this problem. > > Thanks > Senthil Nathan R -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer ma...@su... Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . . |