golden hour
/usr/lib/x86_64-linux-gnu/perl-base/IO
⬆️ Go Up
Upload
File/Folder
Size
Actions
File.pm
1.6 KB
Del
OK
Handle.pm
8.01 KB
Del
OK
Pipe.pm
3.33 KB
Del
OK
Seekable.pm
642 B
Del
OK
Select.pm
4.23 KB
Del
OK
Socket
-
Del
OK
Socket.pm
9.21 KB
Del
OK
Edit: Seekable.pm
# package IO::Seekable; use 5.008_001; use Carp; use strict; use IO::Handle (); # XXX we can't get these from IO::Handle or we'll get prototype # mismatch warnings on C<use POSIX; use IO::File;> :-( use Fcntl qw(SEEK_SET SEEK_CUR SEEK_END); require Exporter; our @EXPORT = qw(SEEK_SET SEEK_CUR SEEK_END); our @ISA = qw(Exporter); our $VERSION = "1.40"; sub seek { @_ == 3 or croak 'usage: $io->seek(POS, WHENCE)'; seek($_[0], $_[1], $_[2]); } sub sysseek { @_ == 3 or croak 'usage: $io->sysseek(POS, WHENCE)'; sysseek($_[0], $_[1], $_[2]); } sub tell { @_ == 1 or croak 'usage: $io->tell()'; tell($_[0]); } 1;
Save