add Dwarn_only and DwarnS_only
authorMatt S Trout <matthewt@hercule.scsys.co.uk>
Sat, 13 Feb 2010 19:47:14 +0000 (19:47 +0000)
committerMatt S Trout <matthewt@hercule.scsys.co.uk>
Sat, 13 Feb 2010 19:47:14 +0000 (19:47 +0000)
commitd776e43427e88900efc149026583cc4b64d8c130
tree53fe2436d188db9111ad4f51b78297a02b87349c
parent9e8a5bca132ade1de969c6facc731b2985bc8bb9
add Dwarn_only and DwarnS_only

These routines take a block as their first argument and only warn+Dumper the
results of the block. Dwarn_only is list context and simply provides @_,
DwarnS_only also does local $_ for the argument in order to simplify usage.
lib/Data/Dumper/Concise/Sugar.pm
t/dwarn_only.t [new file with mode: 0644]