Connection of two-dimensional Fujikawa and perturbative anomalies