# Basic syntax: while( condition ) { code to run; } # Example usage: my $i = 5; while( $i < 10 ) { print "Value of i: $i "; $i += 1; }