Re: Question on Unless and Until

2010-09-01 Thread Brandon McCaig
On Mon, Aug 30, 2010 at 2:25 AM, Uri Guttman u...@stemsystems.com wrote: but i never use until anyhow. i use unless a fair amount as i don't like if ( ! EXPR). my current boss has asked me to stop using unless but i am not stopping. It seems silly to use unless, but never use until. :) I think

Re: Question on Unless and Until

2010-09-01 Thread Shlomi Fish
On Wednesday 01 September 2010 18:06:37 Brandon McCaig wrote: On Mon, Aug 30, 2010 at 2:25 AM, Uri Guttman u...@stemsystems.com wrote: but i never use until anyhow. i use unless a fair amount as i don't like if ( ! EXPR). my current boss has asked me to stop using unless but i am not

Re: Question on Unless and Until

2010-09-01 Thread Chas. Owens
On Wed, Sep 1, 2010 at 11:06, Brandon McCaig bamcc...@gmail.com wrote: On Mon, Aug 30, 2010 at 2:25 AM, Uri Guttman u...@stemsystems.com wrote: but i never use until anyhow. i use unless a fair amount as i don't like if ( ! EXPR). my current boss has asked me to stop using unless but i am not

Re: Question on Unless and Until

2010-09-01 Thread Chas. Owens
On Wed, Sep 1, 2010 at 11:12, Shlomi Fish shlo...@iglu.org.il wrote: On Wednesday 01 September 2010 18:06:37 Brandon McCaig wrote: On Mon, Aug 30, 2010 at 2:25 AM, Uri Guttman u...@stemsystems.com wrote: but i never use until anyhow. i use unless a fair amount as i don't like if ( ! EXPR).

Re: Question on Unless and Until

2010-09-01 Thread Shawn H Corey
On 10-09-01 11:37 AM, Chas. Owens wrote: I don't care if you use unless or if, but please don't use if (!). Say if (not) instead. The looser binding makes it easier to use and the fact that it is three letters long (rather than one skinny character long) makes it some much easier to see. You

Re: Question on Unless and Until

2010-09-01 Thread Chas. Owens
On Wed, Sep 1, 2010 at 12:12, Shawn H Corey shawnhco...@gmail.com wrote: On 10-09-01 11:37 AM, Chas. Owens wrote: I don't care if you use unless or if, but please don't use if (!). Say if (not) instead.  The looser binding makes it easier to use and the fact that it is three letters long

Re: Question on Unless and Until

2010-09-01 Thread Brandon McCaig
On Wed, Sep 1, 2010 at 12:12 PM, Shawn H Corey shawnhco...@gmail.com wrote: Of course, if you want to make the purists cringe: if( some_condition ){  # this space intentionally left blank }else{  do_work(); } I actually have at least one colleague that does that (not at Castopulence[1],

Re: Question on Unless and Until

2010-09-01 Thread Paul Johnson
On Wed, Sep 01, 2010 at 01:00:21PM -0400, Brandon McCaig wrote: On an unrelated note, what is correct quoting etiquette when you only want to quote part of a line? This is how I do it: Above, I just reformatted the quote onto a single line beginning at the

Re: Question on Unless and Until

2010-08-30 Thread Uri Guttman
JG == Jim Gibson jimsgib...@gmail.com writes: JG The unless construct above is correct. The 'until' construct is JG not. 'until' can only occur at the end of a block preceded by 'do' or JG at the end of a statement as a modifier. JG do { JG ... JG } until( condition ); until

Question on Unless and Until

2010-08-29 Thread Jatin Davey
Hi All I a newbie to perl. Reading through some of its basics on if constructs , while constructs and so i also found a the unless and until constructs. let me take the if construct , basically it is like this : if (condition) { .} now in the above construct if the condition evaluates

Re: Question on Unless and Until

2010-08-29 Thread Jim Gibson
At 9:53 AM +0530 8/30/10, Jatin Davey wrote: Hi All I a newbie to perl. Reading through some of its basics on if constructs , while constructs and so i also found a the unless and until constructs. let me take the if construct , basically it is like this : if (condition) { .} now in

Re: Question on Unless and Until

2010-08-29 Thread Jatin Davey
Thanks Jim I got the understanding from this sample code as well: #!/usr/bin/perl use warnings; use strict; print Enter your age : ; unless ((my $age = STDIN) 18) { print you can vote \n; } Thanks Jatin On 8/30/2010 11:15 AM, Jim Gibson wrote: At 9:53 AM +0530 8/30/10, Jatin Davey wrote: