NAME
oo_sub - Use object-oriented versions of Perl built-in functions
SYNOPSIS
use
oo_sub;
my
$user
=
getpwnam
'root'
;
$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)
DESCRIPTION
Perl pragma to import the following modules to enable OOP in Perl for some built-in functions:
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.