web::match
result
listToBeSearched
searchFor
In case searchFor
exists in
listToBeSearched
, web::match returns
result
, otherwise an empty string.
web::match treats v1 as a list. Thus, web::match "ok" {tv dvd vcr} dvd will return ok.
web::tempfile
?options
?
Options are -path path
,
-prefix prefix
, and -remove.
Returns a unique name of a temporary file. The maximum of
guaranteed unique names per application is system dependent.
This command just returns the name of a file. It is the
programmers job to handle the file, for example to open
it. Note that Websh keeps an internal list of all file
names generated with web::tempfile and will attempt to delete
all files when the interpreter dies.