Subject: | ability to pass undef parameters |
Date: | Mon, 17 Mar 2008 17:55:18 -0700 (PDT) |
To: | bug-RRD-Simple [...] rt.cpan.org |
From: | Joseph Prosser <joseph_prosser [...] yahoo.com> |
Module Version: 1.44
When calling $rrd->graph($rrdfname,
sources => defined $gdata ? $gdata : undef,
......);
but this doesn't work because Simple.PMline 872 does this:
my @ds = !exists $param{'sources'}
if it could do this:
my @ds = !exists $param{'sources'} || !defined $param{'sources'}
then you can make one call.
Thanks,
-Joe
Show quoted text
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ