update: this explanation is wrong - see chromatic post below.
The first time the if-condition is false, you are "autovivifying" a global variable "$namedisplay".
Whenever the if-condition is false again, the global variable will be in scope and the old value will show up.
You can catch this with "use strict;".
In reply to Re: will you explain what's going on?
by fglock
in thread will you explain what's going on?
by maard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |