NAME

oo_sub - Use object-oriented versions of built-in Perl functions

SYNOPSIS

use oo_sub;

my $user = getpwnam('root');
print $user -> uid;

my $group = getgrgid(0);
say $group -> name; # use feature 'say';

say my $file = stat('.') -> ino;

printf "%s: %s", getprotobyname('tcp') -> proto, getservbyname('ftp') -> port;

say Dumper getnetbyname('loopback'); # use Data::Dumper;

say p my $time = localtime('.'); # use DDP;

DESCRIPTION

Perl pragma to import the following modules to enable OOP in Perl for some built-in functions:

User::pwent
User::grent
File::stat
Time::Piece
Net::netent
Net::protoent
Net::servent

Uses autoload_remote to achieve this.

AUTHOR

Elvin Aslanov <rwp.primary@gmail.com>

COPYRIGHT

This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.

SEE ALSO

User::pwent, File::stat, Time::Piece, Module:Load