This doesn't work in every OS (it does work in Linux,
but I think it doesn't work in solaris)... you can set $0, which will influence what you
see when you do a ps:
#!/bin/perl -w
use strict;
my $pr=$0;
for(1..10){
$0=$pr." processing $_";
sleep 5;
}