Don't bother passing those on the command line. Since you are piping the data to your program from procmail, you can process the text on STDIN using a module such as Mime::Parser. Alternatively, you can access the environment variables you've already set for yourself. Something like:
my ($from, $subj, $body) = @ENV{qw(FROM SUBJECT BODY)};