Mike Martin wrote:
I am having a problem with looping a string.

This is my code

<snip>

my $count=0;

<snip>

my $str_length=length($string1);

<snip>

while ($count lt $str_length){

<snip>

This code only runs once not any more

You are using the wrong operator to compare numbers. See "perldoc perlop".

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to