Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: RFC: Class::Proxy::MethodChain

by Aristotle (Chancellor)
on Feb 25, 2003 at 23:07 UTC ( #238599=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    given(Gtk::FileDialog->new()) {
        .ok_button.label("Load");
    ...
        .connect_signal(destroy => sub { ... });
        # ...
    }
    
  2. or download this
    sub for_obj(
        local $_ = shift;
        shift->();
        $_;
    }
    
  3. or download this
    my $window = for_obj(Gtk::Window->new("toplevel"), sub {
        $_->signal_connect(delete => sub { Gtk->exit(0) });
    ...
        });
        $_->show;
    });
    
  4. or download this
    sub for_obj { $_[1]->() for $_[0]; $_[0] }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://238599]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-09-21 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls