Skip Menu |

This queue is for tickets about the Net-SSDP CPAN distribution.

Report information
The Basics
Id: 82350
Status: new
Priority: 0/
Queue: Net-SSDP

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.02
Fixed in: (no value)



Subject: Code in SYNOPSIS should use flushing print
I think it's better if the code in the SYNOPSIS is using "print STDERR" instead of just "print". So someone just trying out the code in the SYNOPSIS would actually see an effect. Currently the prints are buffered and don't show up immediately. See attached patch. Regards, Slaven
Subject: net-sddp-synopsis.patch
diff --git i/lib/Net/SSDP.pm w/lib/Net/SSDP.pm index 9bcdb49..da05415 100644 --- i/lib/Net/SSDP.pm +++ w/lib/Net/SSDP.pm @@ -32,12 +32,12 @@ Net::SSDP - Simple Service Discovery Protocol implementation $browser->signal_connect('resource-available' => sub { my ($browser, $usn, $locations) = @_; - print "Resource $usn became available"; + print STDERR "Resource $usn became available\n"; }); $browser->signal_connect('resource-unavailable' => sub { my ($browser, $usn) = @_; - print "Resource $usn became unavailable"; + print STDERR "Resource $usn became unavailable\n"; }); $browser->set_active(1);