Dermot wrote:
2009/7/28 John W. Krahn <jwkr...@shaw.ca>:
Dermot wrote:
2009/7/28 John W. Krahn <jwkr...@shaw.ca>:

Thanx for gettig back to me.

Which error?  Copy and paste the error message you are receiving.
Opps sorry. Here you are. Every time I start the httpd I get

 Processing config file: /etc/apache-modperl/conf.d/dev_vhost.conf
Subroutine addItemsToBasket redefined at
/export/web/lib/MyApp/Basket.pm line 347, <DATA> line 238.
Subroutine addItemToBasket redefined at
/export/web/lib/MyApp/Basket.pm line 355, <DATA> line 238.

That message means that you have defined two addItemsToBasket subroutines
and also two addItemToBasket subroutines in the current package.

I can't confirm this from where I am right now but I have a sneaky
feeling that this might be the case. The file was in subversion and
was reported as conflicted when I updated. I made some edits but I
wonder if there are multiple instances of those routines.

You could be importing a module before MyApp::Basket that has these
subroutines or they could be defined in the main package.

Why are you reading from your program file while importing modules?

Sorry John, I don't understand won't you mean by "reading from your
program file while importing modules".

See the "Special Literals" subsection of the "Scalar value constructors" section in the perldata.pod document.

perldoc perldata

Reading from <DATA> implies that the program file is reading lines from itself after the __DATA__ or __END__ label.



John
--
Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to