Re: Stupid question time!

2002-07-27 Thread drieux
On Saturday, July 27, 2002, at 08:33 , Wiggins d'Anconia wrote: > Janek Schleicher wrote: >> Drieux wrote at Fri, 26 Jul 2002 18:07:51 +0200: >>> p2: but I will religiously stand by the driving thesis: >>> >>> "would you really want to maintain that code?" >>> >>> having come back and 'blanch

Re: Stupid question time!

2002-07-27 Thread Wiggins d'Anconia
Janek Schleicher wrote: > Drieux wrote at Fri, 26 Jul 2002 18:07:51 +0200: > > >>p2: but I will religiously stand by the driving thesis: >> >> "would you really want to maintain that code?" >> >>having come back and 'blanched' at code that was no longer as 'readable' as it had >once been

Re: Stupid question time!

2002-07-26 Thread drieux
On Friday, July 26, 2002, at 07:44 , Nikola Janceski wrote: > Can I put an assignment in an if(){} condition? I think the issue is, would you really want to maintain that code? > ex: > if( my($var) = $string =~ /(\d+)/){ > # do stuff here > } > > And does the scope of $var

Re: Stupid question time!

2002-07-26 Thread drieux
On Friday, July 26, 2002, at 07:28 , Janek Schleicher wrote: preliminary giggle: if coding were a science then it would not be as vulnerable to religious issues so I take no offense at well reasoned counter arguments, even if it tramples all over my dogma 8-) [..]

Re: Stupid question time!

2002-07-26 Thread Janek Schleicher
Drieux wrote at Fri, 26 Jul 2002 16:53:40 +0200: > I think the issue is, > > would you really want to maintain that code? > >> ex: >> if( my($var) = $string =~ /(\d+)/){ >> # do stuff here >> } >> } >> And does the scope of $var in the example scope to the closing if } or )