Guest User

Untitled

a guest
Oct 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. # vim:ts=4:sw=4
  3. use strict;
  4. use warnings;
  5.  
  6. use POE qw{ Component::Client::MPD };
  7.  
  8. POE::Component::Client::MPD->spawn( {
  9. host => 'localhost',
  10. port => 6600,
  11. alias => 'mpd',
  12. status_msgs_to => 'callback'
  13. } );
  14.  
  15. $_[KERNEL]->post( mpd => 'next' );
  16.  
  17. sub callback { print "callback said : @_"; }
Add Comment
Please, Sign In to add comment