Re: valid use of while expression

2005-03-30 Thread T Raymond
Thanks Charles, I got what I wanted to work by replacing while with for. --Teresa Charles K. Clarkson wrote: T Raymond wrote: : If there is a word in $words[$n], is the following expression for : while valid? --Teresa Define "valid". We can test the _syntax_: I get

RE: valid use of while expression

2005-03-30 Thread Charles K. Clarkson
T Raymond wrote: : If there is a word in $words[$n], is the following expression for : while valid? --Teresa Define "valid". We can test the _syntax_: I get "a.pl syntax OK". #!/usr/bin/perl -c use strict; use warnings; my @words = split ' ', 'The quick brown

valid use of while expression

2005-03-30 Thread T Raymond
Hello everyone: If there is a word in $words[$n], is the following expression for while valid? --Teresa #get letters into array my @letters; my $length = 1; while ($words[$n]) { @letters=split//; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: