in reply to Capturing STDERR from a piped open
Just went for a walk and it suddenly hit me....
I needed to change the following line:
" auth $radius_config->{secret} <<EOF\n" .
to:
" auth $radius_config->{secret} 2>&1 <<EOF\n" .
All is good now, thanks for the replies :)