in reply to __DATA__ only one time

try
seek (DATA,0,0);


-Waswas

Replies are listed 'Best First'.
Re: Re: __DATA__ only one time
by eric256 (Parson) on Nov 24, 2003 at 17:13 UTC

    That will actualy seek to the begging of the file, and read all of the code off that page first before getting to the __DATA__ section :)


    ___________
    Eric Hodges
      I just thought about that and was going back to fix it, thats how long it has been since I have snuck _DATA_ sections into my code. Use B's method below as he takes into account the offset of _DATA_ for the seek.


      -Waswas