G+_yasin yusuf Posted October 24, 2015 Share Posted October 24, 2015 hi am yasin , how can mark a limit piont of this perl while loop while($max <= 10) { print $wordlist $words -> randpattern("CCccnCcn"),"\n"; } Link to comment Share on other sites More sharing options...
G+_Craig Shepp Posted November 7, 2015 Share Posted November 7, 2015 I see you are using a while..wend condition. As we already can see it has a built-in stop counter. But by using another conditioner inside you can check for some specify and do something special. I have not looked up the code for a breakout for perl but often you can do an action inside an if and then afterwards break out either by a break command of sorts or forcing the counter to its end condition. Link to comment Share on other sites More sharing options...
G+_yasin yusuf Posted November 7, 2015 Author Share Posted November 7, 2015 Oh thanks , but I already overcome that problem ,I made incrementing the max and setup an if loop with in the while loop Link to comment Share on other sites More sharing options...
G+_Craig Shepp Posted November 7, 2015 Share Posted November 7, 2015 Cool. Try not to loop too much. Can cause the code to run slower each. Link to comment Share on other sites More sharing options...
G+_yasin yusuf Posted November 8, 2015 Author Share Posted November 8, 2015 OK thanks Link to comment Share on other sites More sharing options...
Recommended Posts