My question is probably more Unix related, but I need to incorporate it in a Perl script. I was wondering if there's a built-in function (Unix or Perl) that displays how long a user has been logged? I tried using `time`, which shows the elapsed time since logon in the third field, but when I try using `time | cut -d" " -f3` to cut that field from the output, I get '0:00.00' if run on the command line, and 'usage: time [
]' if run in the Perl script. I appreciate any help.