--- IO-AIO/AIO.pm 2005/07/11 03:10:08 1.16 +++ IO-AIO/AIO.pm 2005/07/11 03:29:22 1.17 @@ -131,7 +131,7 @@ callback without the actual number of bytes read (or -1 on error, just like the syscall). -Example: Read 15 bytes at offset 7 into scalar C<$buffer>, strating at +Example: Read 15 bytes at offset 7 into scalar C<$buffer>, starting at offset C<0> within the scalar: aio_read $fh, 7, 15, $buffer, 0, sub { @@ -142,8 +142,8 @@ =item aio_readahead $fh,$offset,$length, $callback Asynchronously reads the specified byte range into the page cache, using -the C syscall. If that syscall doesn't exist the status will be -C<-1> and C<$!> is set to ENOSYS. +the C syscall. If that syscall doesn't exist (likely if your OS +isn't Linux) the status will be C<-1> and C<$!> is set to ENOSYS. readahead() populates the page cache with data from a file so that subsequent reads from that file will not block on disk I/O. The C<$offset>