Re: Subroutine foo redefined a bar

2009-07-29 Thread Dermot
2009/7/29 Shawn H. Corey : > Chas. Owens wrote: >> >> On Wed, Jul 29, 2009 at 04:37, Dermot wrote: >> snip >>> >>> I'll grab myself a version of Scalar::Utils and have a play. >> >> snip >> >> If your version of Perl is 5.8.0 or later you already have >> Scalar::Utils (it is in the core). More la

Re: Subroutine foo redefined a bar

2009-07-29 Thread Shawn H. Corey
Chas. Owens wrote: On Wed, Jul 29, 2009 at 04:37, Dermot wrote: snip I'll grab myself a version of Scalar::Utils and have a play. snip If your version of Perl is 5.8.0 or later you already have Scalar::Utils (it is in the core). Actually, that would be Scalar::Util You may, however, wish

Re: Subroutine foo redefined a bar

2009-07-29 Thread Chas. Owens
On Wed, Jul 29, 2009 at 04:37, Dermot wrote: snip > I'll grab myself a version of Scalar::Utils and have a play. snip If your version of Perl is 5.8.0 or later you already have Scalar::Utils (it is in the core). -- Chas. Owens wonkden.net The most important skill a programmer can have is the ab

Re: Subroutine foo redefined a bar

2009-07-29 Thread Dermot
2009/7/29 John W. Krahn : > Dermot wrote: >> >> 2009/7/28 John W. Krahn : >>> >>> Dermot wrote: 2009/7/28 John W. Krahn : 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 st

Re: Subroutine foo redefined a bar

2009-07-28 Thread John W. Krahn
Dermot wrote: 2009/7/28 John W. Krahn : Dermot wrote: 2009/7/28 John W. Krahn : 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/de

Re: Subroutine foo redefined a bar

2009-07-28 Thread Chas. Owens
On Tue, Jul 28, 2009 at 17:05, Dermot wrote: snip >>    my $bid = shift; >>    my $items = ref $_[0] ? $_[0] : \...@_; >> > > Perhaps you can expand, if $_[0] was a scalar wouldn't that get > assigned to $items? snip Normal scalars (i.e. strings and numbers) are not references, therefore the resul

Re: Subroutine foo redefined a bar

2009-07-28 Thread Dermot
2009/7/28 John W. Krahn : > Dermot wrote: >> >> 2009/7/28 John W. Krahn : >> >> 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 >> > > That message means that you have defined tw

Re: Subroutine foo redefined a bar

2009-07-28 Thread John W. Krahn
Dermot wrote: 2009/7/28 John W. Krahn : 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

Re: Subroutine foo redefined a bar

2009-07-28 Thread Dermot
2009/7/28 John W. Krahn : 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 /ex

Re: Subroutine foo redefined a bar

2009-07-28 Thread John W. Krahn
Dermot wrote: Hi, Hello, I noticed this error appearing when I stop/started my httpd server recently (yes this is modperl 1 code). Which error? Copy and paste the error message you are receiving. This offending code reads a like this: package Some::Pack; .. .. sub addItemsToBasket {