What's the output of the following script?
Points awarded only if you don't run it ;)
#raise "Gave up already?"
def with(*objs, &block)
objs.each { |o| o.instance_eval(&block) }
end
a = %
b = %
c = %
d = %
with a,b,c,d do
case self
when " "; puts "foo"
when "\t"; puts "bar"
when "\n"; puts "baz"
end
end
This feature has some serious potential for abuse! Good enough for an
almost indecipherable obfuscated Ruby program...
We shall now see who's got the best MUA :-)
--
_ _
| |__ __ _| |_ ___ _ __ ___ __ _ _ __
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
A Linux machine! Because a 486 is a terrible thing to waste!
-- Joe Sloan, jjs / wintermute.ucr.edu