in reply to Re: Multi-roled colon
in thread Multi-roled colon

Then you probably didn't know that that fact was actually documented? See "man perlrun", in the section that talks about the -S option. (It's amazing how many obscure Perl syntax/semantics issues are actually documented). Perl only ignores a lone colon if that colon is the first non-whitespace character in a file though.

Abigail

Replies are listed 'Best First'.
Re (2): Multi-roled colon
by VSarkiss (Monsignor) on Oct 01, 2003 at 16:32 UTC

    To wit, it says:

    ... a line containing just a colon, which will be politely ignored by Perl.
    It takes a twisted mind genius to read that and turn it into an obfu. Well done Abigail-II!

Re: Re: Multi-roled colon
by greenFox (Vicar) on Oct 02, 2003 at 03:00 UTC
    My first guess was that it (the lone colon) was Perl implementing the null operator from the bourne family of shells and I couldn't think of any reason why they would have done that... clearly because they hadn't *grin*

    --
    Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho