in reply to What's the exact rule about hash/pound?

An unquoted # that follows whitespace or a semicolon is a comment.

# this is a comment # as is this print "# I'm not!";# but I am

Update: Ignore me! For I'm an idiot. ;-)

Replies are listed 'Best First'.
Re: What's the exact rule about hash/pound?
by Abigail-II (Bishop) on Feb 27, 2003 at 13:59 UTC
    Not true:
    print " # Not a comment";

    The reverse isn't true either:

    print "foo"#This is a comment

    Abigail