in reply to Sending and reading hex commands on a Win32 serial port

The pack needs to be

my $status = pack( 'H[12]', 'ca00010000fe' );
I figured it out by printing $status to a file and then using a hex editor (and reading pack ;-).