For example I've got something like this:
$users = `users`
# command users show actually logged users in system, for example
# now show us this:
# jgr root root jgr greg n0c@data
= split (/ /, $users);
# so in @data
i've got: "jgr", "root", "root", "jgr", "greg", "n0c"
eh, end now, how can I count how many each elemenets is in @data
, I mean, for example how many "jgr", is in @data
But contents of @data
is not always the same.
Sorry for my poor english
Ok, I think thats all