local $" = "\n"; # change list separator to a newline
say ( ref $_ eq "ARRAY" ? "@$_" : $_ ) for ( $foo, $baz );
Wouldn't it be easier/quicker/clearer/more informative to use something like Data::Dumper::Dumper() (which is core) or Data::Dump::dd() (not core, but I like it a lot) to dump a scalar or reference and see exactly what its value or structure is? Why go through such specialized acrobatics?
Give a man a fish: <%-{-{-{-<
In reply to Re^2: What is correct way to reference?
by AnomalousMonk
in thread What is correct way to reference?
by BradV
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |