Re: loop break condition

2011-08-26 Thread Shlomi Fish
On Fri, 26 Aug 2011 20:08:31 +0100 Rob Dixon wrote: > On 26/08/2011 18:12, Jim Gibson wrote: > > On 8/25/11 Thu Aug 25, 2011 5:20 PM, "Rob Dixon" > scribbled: > >> On 25/08/2011 20:36, Shlomi Fish wrote: > >>> > >>> If you want to use $_ so be it, but it can easily introduce > >>> subtle errors

Re: loop break condition

2011-08-26 Thread Shawn H Corey
On 11-08-26 03:08 PM, Rob Dixon wrote: As an aside, the same applies to the common warning against using the global values $a and $b 'because they are used by sort'. Once again, sort localizes these variables within the comparison code so there is very little chance of inadvertently modifying the

Re: loop break condition

2011-08-26 Thread Rob Dixon
On 26/08/2011 18:12, Jim Gibson wrote: On 8/25/11 Thu Aug 25, 2011 5:20 PM, "Rob Dixon" On 25/08/2011 20:36, Shlomi Fish wrote: If you want to use $_ so be it, but it can easily introduce subtle errors into your code, because $_ is so easy to modify and clobber. So I would recommend against t

Re: Problem installing perl module

2011-08-26 Thread Chankey Pathak
On Aug 11, 4:25 pm, shawnhco...@gmail.com (Shawn H Corey) wrote: > On 11/08/11 03:27 AM, Chankey Pathak wrote: > > > I downloaded the Tk module. Unpacked it by zcat Tk800.0_01.tar.gz | > > tar xf - then cd to that directory (cd Tk-804.029_500) then perl > > Makefile.PL and I got this output:http://

Re: regex negative looking up a backtrace

2011-08-26 Thread Peter Scott
On Wed, 24 Aug 2011 20:24:00 +0530, Ramprasad Prasad wrote: > Assume I have to find the first unique character in a string > > $string = "abtable"; > > # t is the first unique string > > I tried using a negative backtrace lookup to get the answer in a single > regex ... But something is missing

Re: loop break condition

2011-08-26 Thread Brandon McCaig
On Wed, Aug 24, 2011 at 6:07 PM, Rob Dixon wrote: > On 22/08/2011 10:29, Shlomi Fish wrote: > Just as with pronouns in natural language, implicit operands in Perl > allow the meaning of a program to be more lucid. Yes, if we are not > careful we can sometimes write confusing English where it is un

Re: loop break condition

2011-08-26 Thread Jim Gibson
On 8/25/11 Thu Aug 25, 2011 5:20 PM, "Rob Dixon" scribbled: > On 25/08/2011 20:36, Shlomi Fish wrote: >> >> If you want to use $_ so be it, but it can easily introduce subtle errors >> into >> your code, because $_ is so easy to modify and clobber. So I would recommend >> against these, and st