![]() |
![]()
| ![]() |
![]()
NAMELchown - use the lchown(2) system call from Perl SYNOPSISuse Lchown; lchown $uid, $gid, 'foo' or die "lchown: $!"; my $count = lchown $uid, $gid, @filenames; # or use Lchown qw(lchown LCHOWN_AVAILABLE); warn "this system lacks the lchown system call\n" unless LCHOWN_AVAILABLE; ... # or use Lchown (); warn "this won't work\n" unless Lchown::LCHOWN_AVAILABLE; Lchown::lchown $uid, $gid, 'foo' or die "lchown: $!"; DESCRIPTIONProvides a perl interface to the lchown() system call, on platforms that support it. DEFAULT EXPORTSThe following symbols are exported be default:
ADDITIONAL EXPORTSThe following symbols are available for export but are not exported by default:
SEE ALSO"chown" in perlfunc, lchown(2) AUTHORNick Cleaton <nick@cleaton.net> COPYRIGHT AND LICENSECopyright 2003-2009 Nick Cleaton, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|