To actually alter the visible command line, you can assign to the variable
$0
as documented in the perlvar manpage. This won't work on all operating systems, though. Daemon programs like
sendmail place their state there, as in:
$0 = "orcus [accepting connections]";