New remove example:
##
file: email.us
usl: 3.7.6
Some people split their e-mail address in order to avoid
web crawlers from finding them.
This script shows how to assemble email addresses
from these split words with unorthodox scripting language.
##
method getEmail(s)
@s = $0
list words
words = @s.split()
for w in words
@w = "${w}"
switch @w
case "dot"
@email += "."
case "dash"
@email += "-"
case "at"
@email += "@"
default
@email += @w
end
endfor
remove (@s,@w,words)
return @email
end
# @original = "chomp.enter split email: "
@original = "unorthodox dash scripting dash language at iconoclazt dot com"
@built = getEmail(@original)
say "\]Original:\[\{@original}\]E-mail address: \{@built}"
Random examples:
method foo @perishing = "This variable will be removed from memory." @perishing = "Hello, World!" return (@perishing*5) end @string = (@string+@string) # is the same as @string += @string @num = 10 if @num < (@num+@num) say "Ten is less than twenty." endif unless (@num^2) < 20 say "Unless the expression is true, say this message." endif
I will update this blog post when I get around to it. Pardon the simplicity of these examples. I need SLEEP. I've updated the MediaWiki and you can find it under the "Hosted Apps" tab at the sourceforge link below.
To download 3.7.6, you can visit any of the following links:
sourceforge
freecode
No comments:
Post a Comment