in reply to Re^2: multiple method calls against the same object (f.ex GUI programming)
in thread multiple method calls against the same object (f.ex GUI programming)
And worse yet, I still need a temporary variable for every widget, even when it's a widget I don't care about having access to later (scrollbars often fall in this category f.ex).In that case, it gets even easier:
Don't name anything you don't need to name!for (Scrollbar->new) { $_->config1($param1); $_->config2($param2); $otherwidget->add($_); }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: multiple method calls against the same object (f.ex GUI programming)
by Aristotle (Chancellor) on Oct 29, 2002 at 02:16 UTC |
In Section
Cool Uses for Perl