oo_sub - Use object-oriented versions of Perl built-in functions
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; p my $time = localtime; # use DDP; (ie. Data::Printer)
Perl pragma to import the following modules to enable OOP in Perl for some built-in functions:
Uses autoload_remote to achieve this.
autoload_remote
Elvin Aslanov (rwp.primary@gmail.com)
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
User::pwent, File::stat, Time::Piece, Module:Load
To install oo_sub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm oo_sub
CPAN shell
perl -MCPAN -e shell install oo_sub
For more information on module installation, please visit the detailed CPAN module installation guide.