|
NAMENet::Netrc - OO interface to users netrc fileSYNOPSISuse Net::Netrc; $mach = Net::Netrc->lookup('some.machine'); $login = $mach->login; ($login, $password, $account) = $mach->lpa; DESCRIPTION"Net::Netrc" is a class implementing a simple interface to the .netrc file used as by the ftp program."Net::Netrc" also implements security checks just like the ftp program, these checks are, first that the .netrc file must be owned by the user and second the ownership permissions should be such that only the owner has read and write access. If these conditions are not met then a warning is output and the .netrc file is not read. The .netrc FileThe .netrc file contains login and initialization information used by the auto-login process. It resides in the user's home directory. The following tokens are recognized; they may be separated by spaces, tabs, or new-lines:
Class MethodsThe constructor for a "Net::Netrc" object is not called new as it does not really create a new object. But instead is called "lookup" as this is essentially what it does.
Object Methods
EXPORTSNone.KNOWN BUGSSee <https://rt.cpan.org/Dist/Display.html?Status=Active&Queue=libnet>.SEE ALSONet::Cmd.AUTHORGraham Barr <gbarr@pobox.com <mailto:gbarr@pobox.com>>.Steve Hay <shay@cpan.org <mailto:shay@cpan.org>> is now maintaining libnet as of version 1.22_02. COPYRIGHTCopyright (C) 1995-1998 Graham Barr. All rights reserved.Copyright (C) 2013-2014, 2020 Steve Hay. All rights reserved. LICENCEThis module is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e. under the terms of either the GNU General Public License or the Artistic License, as specified in the LICENCE file.VERSIONVersion 3.13DATE23 Dec 2020HISTORYSee the Changes file.
Visit the GSP FreeBSD Man Page Interface. |