Re: On using $_ in subroutines

2009-07-29 Thread Bryan R Harris
> Bryan R Harris wrote: >>> Bryan Harris wrote: John W. Krahn wrote: > Bryan Harris wrote: >> ... but by modifying $_ I was clobbering $_ elsewhere in the larger >> program! > Yes because $_ is a special global variable. This effect is called > "action at a distance" whic

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