http://www.perlmonks.org?node_id=208577


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:
for (Scrollbar->new) { $_->config1($param1); $_->config2($param2); $otherwidget->add($_); }
Don't name anything you don't need to name!

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.