O'Reilly logo

Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition by Matthew Helmke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

until

until is the exact opposite of the while statement. It performs a block of statements as long as a particular condition is false (or, rather, until it becomes true):

until (ValidPassword($user, $password))  {  print "YSdpgm_mSdpgm_mYou have entered an invalid password. Please try again.\n";Sdpgm_m  $password = GetPassword;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required