pg has asked for the wisdom of the Perl Monks concerning the following question:
It gives me a red window, good. If I say,MainWindow->new(background => "red");
MainWindow->new(-background => "red");
It gives me a red window, this start to be interesting. Then I went,MainWindow->new(+background => "red");
It gives me a green window, this is good. Because the value for key "backgound" was assigned twice, obviously the second time overwrites the first assignment. I thought, okay, why not try something more fun,MainWindow->new(+background => "red", +background => "green");
It gives me a red window, Hm, it is getting more interesting.MainWindow->new(+background => "red", -background => "green");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: - and + sign before keys, when pass parms to Tk functions
by diotalevi (Canon) on Nov 17, 2002 at 03:42 UTC | |
|
Re: - and + sign before keys, when pass parms to Tk functions
by nothingmuch (Priest) on Nov 17, 2002 at 04:38 UTC |