Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: multiple method calls against the same object, revisited

by simonm (Vicar)
on Dec 28, 2004 at 07:48 UTC ( #417715=note: print w/ replies, xml ) Need Help??


in reply to Re^2: multiple method calls against the same object, revisited
in thread multiple method calls against the same object, revisited

What happens when you want to have a method without any arguments in the middle of those other methods?

Just write it with an empty array reference:

my $window = Gtk2::Window->new( "toplevel" )->call_method_list( signal_connect => [ delete_event => sub { Gtk2->main_quit } ], set_title => "Test", my_argumentless_method => [], set_border_width => 15, add => Gtk2::Button->new( "Quit" )->call_method_list( signal_connect => [ clicked => sub { Gtk2->main_quit } ] ), 'show_all', );


Comment on Re^3: multiple method calls against the same object, revisited
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-08-20 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (123 votes), past polls