sub markets { $self = shift; [...] $self->{'markets'} = parse_markets(\$self->{'markets_json'}); [...] } sub parse_markets { my $markets_json = shift; #parsing hier return \$parsing_ergebnis; }