my $parse_tree = expression(); print Dumper $parse_tree; __END__ $VAR1 = [ [ '2', '*', '3' ], '+', [ '4' ] ];