Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
716 B

  1. #
  2. package IO;
  3. use XSLoader ();
  4. use Carp;
  5. $VERSION = "1.20";
  6. XSLoader::load 'IO', $VERSION;
  7. sub import {
  8. shift;
  9. my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir);
  10. eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
  11. or croak $@;
  12. }
  13. 1;
  14. __END__
  15. =head1 NAME
  16. IO - load various IO modules
  17. =head1 SYNOPSIS
  18. use IO;
  19. =head1 DESCRIPTION
  20. C<IO> provides a simple mechanism to load some of the IO modules at one go.
  21. Currently this includes:
  22. IO::Handle
  23. IO::Seekable
  24. IO::File
  25. IO::Pipe
  26. IO::Socket
  27. IO::Dir
  28. For more information on any of these modules, please see its respective
  29. documentation.
  30. =cut