in reply to Everything is a closure

I'm getting

substr outside of string at - line 10, <DATA> line 2. Use of uninitialized value in split at - line 10, <DATA> line 2.

What did I do wrong?

Update: Answer: I pasted the code directly into Perl at a command line rather than saving to a file and the running it. As the program attempts to seek on the DATA handle, it fails. Hence teh errors above. Ie. My problem not the obfu!


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^2: Everything is a closure
by holli (Abbot) on Jan 20, 2005 at 19:54 UTC
    did you copy the
    __END__ Everything is a closure!
    part? i get Everything is a closure!

    holli, regexed monk

      Yes I did.... but I just remembered having a similar problem once before. It happens because I have a habit of pasting obfus directly into perl at a command line rather than into a file and then running them. And that is the problem again here. Run from within a file, I get that result also.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.

        I have a hobit

        A hobbit? Or a habit?

        :-)

        Makeshifts last the longest.