in reply to Re: Question on seek()
in thread Question on seek()

Thanks Boris that worked fine. One of the things that throws me using Perl vs C/C++ is that C/C++ always mentions what includes you need, but I don't see any equivelent in perl to let you know what "use" moduals one needs to request.

Replies are listed 'Best First'.
Re^3: Question on seek()
by dave_the_m (Monsignor) on Aug 04, 2005 at 19:34 UTC
    but I don't see any equivelent in perl to let you know what "use" moduals one needs to request.
    From the perl documentation for seek:
    For WHENCE you may use the constants "SEEK_SET", "SEEK_CUR", and "SEEK_END" (start of the file, current position, end of the file) from the Fcntl module.

    Dave.

Re^3: Question on seek()
by borisz (Canon) on Aug 04, 2005 at 19:36 UTC
    Hmm my C does not. It just tells that something is missing. perl does this also with warnings enabled. Start any of you scripts with:
    use strict; use warnings;
    I learned about the constants for seek from the docs of seek.
    Boris