Mercurial > repo
view wisdom/select @ 10991:2a49f15d9293
<wob_jonas> perl -e {$f="wisdom/rules of wisdom";open$i,"<",$f or die;local$/;$s=<$i>;$s=~s/with no space at the end/and end in a newline with no space before that/ or die;$s=~s/\\n\\z// or die;print$s;open$o,">",$f;print$o $s or die;}
author | HackBot |
---|---|
date | Fri, 02 Jun 2017 10:25:48 +0000 |
parents | 1a4b688a59ae |
children |
line wrap: on
line source
select is a very versatile construct: it waits for events, retrieves data from tables, creates a list from elements of an input list that satisfy a condition, a dropdown list element, an event for when selection changes, branches between multiple arms, conditional between two expressions, prints a text-based menu prompt in a loop, and more.