[REBOL] Re: footer on Joel's email
From: hallvard:ystad:helpinhand at: 18-Mar-2002 13:40
Dixit Charles (07.33 18.03.2002):
> Oh. The mystery commented portion is Perl... that makes sense, now. Hmm...
>Little question, though. WTF does # do, precisely? It appears to be a comment
>character for Perl (yes?), but when I try to help or source it, I get told it's
>an issue. But I can do "# print "hi"" and it prints "hi" okay. Help?
You can do # because # is an issue, and do # simply returns #: Here's from the console:
>> trace on
Result: (unset)
>> do #
Trace: do (word)
Trace: # (issue)
Result: # (issue)
== #
So # print "hi" prints hi because # doesn't print anything. You could equally do "Here's
a string" print "hi", which also simply prints "hi":
>> "Here's a string" print "hi"
Trace: "Here's a string" (string)
Trace: print (word)
Trace: "hi" (string)
hi
Result: (unset)
~H