in reply to Snake

One clever way to open the source file is open 0; you then read the source code with <0>. This works because, when you pass open a single argument, it serves as the filehandle and the name of the scalar variable holding the filename. So, open 0 opens filehandle 0 on the file named in $0.

Replies are listed 'Best First'.
Re: Re: Snake
by flgr (Sexton) on Sep 07, 2001 at 15:00 UTC
    Hmmm... very nice. Didn't know about that yet. Thanks for pointing it out. :)

    $§=lc(sub{}^" \6 \n");$§=~s/\(.*\)//;for(split
    ('',$§)){$/=$_;for(5..7){$/++}$:.=$/}print$:;1