Subject: | Some functions return undef instead of an empty list |
Functions like cupsGetJobs and cupsGetDests return undef when there is no jobs or dests, even in list context. That's quite annoying when using pieces of codes likes those:
my @jobs = Net::CUPS::Printer::cupsGetJobs('', 0, 0);
If there is no jobs, @jobs contains (undef), instead of (), so testing the result is quite cumbersome.