I know this is possible, but I draw a space in the syntax. How do you do something similar to the following as conditional. 5.8, so there is no switch option:
while ( calculate_result() != 1 ) { my $result = calculate_result(); print "Result is $result\n"; }
And just something similar to:
while ( my $result = calculate_result() != 1 ) { print "Result is $result\n"; }
Oesor
source share