I was wondering why the interaction between Data::Dumper and printf is different between an array and an array as ref. See Example:
#!/usr/local/bin/perl use strict; use Data::Dumper; my @array = (1, 2, 3, 4); printf "As Array:\n"; printf Dumper(@array); printf "As Reference to Array:\n"; printf Dumper(\@array);
"print" doesnt seem to have any problems, "printf" doesnt seem to return the proper results...But I want to know why!
In reply to Data::Dumper and printf by Trihedralguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |