in reply to Re^4: Tree in perl
in thread Tree in perl

Hi,

just checked it again: My code (McA) doesn't have an syntax error. At least not on my machine. So, show us what your perl version is saying about the code.

McA

Replies are listed 'Best First'.
Re^6: Tree in perl
by saurabh2k26 (Initiate) on Nov 17, 2014 at 18:53 UTC

    syntax error at t.pl line 11, near "+ }"

      That's because you copied and pasted his code. Perlmonks automatically wraps long lines, and adds '+'. Download the code instead.