cazz has asked for the wisdom of the Perl Monks concerning the following question:
You would expect that Dumper would print an empty list. However, I get the following:use Data::Dumper; sub foo { return (); } warn Dumper(sort foo('1000'));
$VAR1 = '1000';
This looks like a bug to me but wanted to get more eyes on it first before I added a bug. I've checked both supersearch and perl's bug database without finding a prior report of this issue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: leaking into sort when sorting an empty set
by ikegami (Patriarch) on Mar 21, 2006 at 16:08 UTC | |
|
Re: leaking into sort when sorting an empty set
by tilly (Archbishop) on Mar 21, 2006 at 16:10 UTC |