in reply to how do i read input from Unix command

Try backticks:

my $output = `ud < CoreCust.ud`;