in reply to Re: "Empty Stream" error as result of repeated reading of __DATA__ block?
in thread "Empty Stream" error as result of repeated reading of __DATA__ block?

Thanks very much, gellyfish, that was just what I needed.

However, your code does produce a warning:

Argument "SEEK_SET" isn't numeric in seek at ./test.pl line 13, <DATA> + line 7.

on my system, which I don't understand, SEEK_SET being a constant after all. Do you know why this occurs?

Thanks again,

loris

  • Comment on Re^2: "Empty Stream" error as result of repeated reading of __DATA__ block?
  • Download Code

Replies are listed 'Best First'.
Re^3: "Empty Stream" error as result of repeated reading of __DATA__ block?
by gellyfish (Monsignor) on Aug 17, 2005 at 10:55 UTC

    Er, no I don't know why this occurs - it is possible that you didn't use Fcntl and are not using strict. If you are worried by this you can use 0 instead but this is not guaranteed to be portable to all systems.

    /J\