$parent -> Button (-text => 'Quit', -command => sub {Tk::exit}) -> pack;
Both the Button method and the pack method return an object (the same one actually), but if you don't need to use the widget anymore, it's often discarded.
Abigail
In reply to Re: Style Question: Throwaway Objects
by Abigail-II
in thread Style Question: Throwaway Objects
by seattlejohn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |