in reply to BoSelecta __DATA__ and rewind.

instead of the seek()command rewinding to the top of the __DATA__! its rewinding half way up the actual code instead!!!
why would it rewind to the top of __DATA__? seek handle,0,0 means seek to the beginning of the file, and __DATA__ is not the beginning of the file. If you read perldoc -f seek you'll see the name of a related function which you can use to learn where to seek to.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: BoSelecta __DATA__ and rewind.
by Anonymous Monk on Oct 05, 2004 at 13:17 UTC
    perldoc -f seek Very Usefull.

    I will use it from now on

    Thanks

    Blackadder