[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] OT: Showing uptime via web



> Well, if you can tell me how to get rid of that "comma" in 
> the output, then I can tell you which permissions to give the script 
> to make it work with CGI-Wrapper.


To conditionally get rid of a comma, try this expression:

if ($token =~ /\S,$/)
{  chop $token;  }

...which removes the last character of $token if it is a comma.

--Stew Smith