On Thu Mar 22 07:38:41 2012, faxm0dem wrote:
Show quoted text> after looking at 'perldoc -f scalar' I realized this may be a perl
> "issue", as the following forces list context:
>
> # perl -MDDP -le 'sub a {@ARGV};p @{[a]}' a b c
Hi! Thank you for using Data::Printer and sorry for the very long wait. Indeed printing directly from subroutine entries is not supported. You most likely already figured this out by now (again, sorry!) but the data being printed must either come from a named variable or (if you're not using prototypes) from a reference to the data. This is because of our decision to make only the first argument of p() be dumped, and treat the others as properties (e.g. p(@ARGV, colored => 0)).
Hope this helps! Cheers!
garu