in reply to Re: Funny code (not amused)
in thread Funny code

The $^O stuff is to distinguish DOS vs Unix path separators (backslash vs slash).
That may be it's purpose, but in fact it is having no effect at all. First the code tries removing everything through the last backslash; if there was no backslash it tries removing everything through the last slash. I still can't tell if the $^O part is intentional obfu or just a typo.

Replies are listed 'Best First'.
Re^3: Funny code (we are not amused)
by tye (Sage) on Aug 19, 2004 at 01:33 UTC

    For the third time, it is a typo, not an attempt at obfuscation. Please don't make me tell you again.

    - tye