in reply to lastlogin for NT/2K
In a few spots, you apply "exists" to test an array element. exists() is only meant for testing hash entries, and for me, this generates a compile-time error. You should replace
with plain old( exists $ARGV[0] )
( $ARGV[0] )
Also, personally I'd take
and turn it into an unless-else:Win32::NetAdmin::GetUsers ... or die unless exists $ARGV[0]; if ( exists $ARGV[0] ) { ... }
unless ($ARGV[0]) { Win32::NetAdmin::GetUsers ... } else { ... }
Style issues aside, as a Linux-user adjusting to Win32, these tools you've posted are good things to have; thanks for posting them.
-- Frag.
|
---|
In Section
Code Catacombs