in reply to Re^4: Tree depth
in thread Tree depth
It's confusing... Do you have any ideas?
Yes. Don't remove the use strict; use warnings; from the start of the script. It's there for a reason: it tells you what you are doing wrong. (Namely you're not clearing %graph, but rather $graph, which is a totally different variable, which you've never declared. use strict; catches that errors).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Tree depth
by katarinahm (Initiate) on Mar 13, 2012 at 15:44 UTC | |
by moritz (Cardinal) on Mar 13, 2012 at 15:57 UTC | |
by katarinahm (Initiate) on Mar 14, 2012 at 07:32 UTC |