The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use ClearCase::CtCmd qw(cleartool);

# Returns an array containing three scalars: (exit status, stdout, stderr)
my @results = cleartool('pwv');

# Now distribute stdout to stdout, stderr to stderr,
# and exit with the exit code.
print STDOUT $results[1];
print STDERR $results[2];
exit $results[0];