in reply to Fourth time's the charm JAPH

You can insert #line 2 just after the first line, to make sure the math goes as you expect (or use __LINE__). For instance, omitting the shebang line and doing perl foo.pl breaks the japh.

To make it warnings clean, use (caller)[-1].

--
David Serrano

Replies are listed 'Best First'.
Re^2: Fourth time's the charm JAPH
by dewey (Pilgrim) on Aug 22, 2006 at 14:16 UTC
    The warning is fixed now, thanks. As to your first comment, it's true that the code is sensitive to changes, but that was my intention when I designed it to work this way. As long as the code is run exactly as I wrote it, it should work, eh? ~dewey
      As long as the code is run exactly as I wrote it, it should work, eh?

      No. Your code needs a line above it (such as a a shebang) to run exactly as you wrote it. But if it's your intention, that's fine then.

      --
      David Serrano