Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: lastlogin for NT/2K

by frag (Hermit)
on Apr 24, 2001 at 03:24 UTC ( #74910=note: print w/ replies, xml ) Need Help??


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

( exists $ARGV[0] )
with plain old
( $ARGV[0] )

Also, personally I'd take

Win32::NetAdmin::GetUsers ... or die unless exists $ARGV[0]; if ( exists $ARGV[0] ) { ... }
and turn it into an unless-else:
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.


Comment on Re: lastlogin for NT/2K
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://74910]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-07-07 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls