2009/7/29 John W. Krahn <jwkr...@shaw.ca>: > 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.
Thanx John and Chas, More egg on my face. There was indeed a 2nd copy of both subroutines further down the package at line 347...etc exactly as the errors said. I'll grab myself a version of Scalar::Utils and have a play. Thanx again, Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/