Measurement threshold policy with two metric's evaluation

Hello.
I'm trying to create policy, which accepts two metrics via opcmon. It works as expected, when I have single source and single evaluation in Measurement threshold policy, but if I add second source, policy converts to Perl Script evaluation, and I can't figure out, how to proceed with Perl threshold evaluation.
for example:
in source I have:
Source type: Program source
Short name: calculated_metric_short_name
Program: /tmp/calculate_metric.sh
Data source: CALC_METRIC_SCRIPT
Object: CALC_METRIC
Metric: CALC_METRIC_NAME

and Threshold limit (Perl Script):
***
if ( \$Policy->Source(calculated_metric_short_name) > 1000 )
{
\$Rule->Status(TRUE);
}else{
\$Rule->Status(FALSE);
}
***
Will it work?
How should Perl Eval Script look like?
How to access this metric in Performance dashboard?
Is there any guide/documentation for perl script evaluation?