Hello, Dee Pettiford,

>>   I've check my UNIX guide and I cannot find the command needed. I'm
DP> looking
>>  for a commmand in UNIX and perl to Display only the NUMBER of users only;
DP> no
>>  other information on the user.

You still want do this by perl???

#!/usr/bin/perl
print "The number of users is ".`w -h | wc -l`;

This is formal true perl program. But it has no preference
against the shell script I was posted to you before, because with perl
your computer must load perl interpreter that is greater than shell
interpreter, compile your program and still execute two external
commands.

If you want to program with perl, try another problem, especially text
files handling.

--
Alexandr S. Agranovsky
[EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to