Paul wrote:
> --- "R. Joseph Newton" <[EMAIL PROTECTED]> wrote:
> > > my $x = 1 if(0);
> >
> > So this is a post-test?
Duuuuh, I think I was groggy. I was wondering actually whether it was a logical
post-test, and clearly that would be meaningless in the context of an if statement.
Did a little more experimenting just now, and it is clear that
delete_text[there is no logical impact of the positioning of the conditional--ie while
will always check before execution of each block]
Screeeech-BABOOM--chuck that, I guess position of the test is significant in while
loops:
#!/usr/bin/perl -w
use strict;
use warnings;
my $i = 1;
do {print "$i\n"; $i++;} while $i < 1;
print $i . "\n";
.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]