wingolab-org / mpd-perl

Multiplex Primer Design
GNU General Public License v3.0
11 stars 6 forks source link

Sending undef string with {add} adds whole library #1

Closed carnager closed 7 years ago

carnager commented 7 years ago

MPD protocol specifies that an empty string adds the whole library (for historical reasons "/" also works). Net::MPD on the other hand also reacts this way if a value is not initialized at all.

Code example:

#usr/bin/perl

use Net::MPD; Net::MPD->connect($ENV{MPD_HOST})->add(undef);          
carnager commented 7 years ago

argh wrong project