Think about Loose Coupling | |
PerlMonks |
Re: Tie::File - sorting array adds empty linesby ikegami (Patriarch) |
on Sep 11, 2008 at 20:09 UTC ( [id://710723]=note: print w/replies, xml ) | Need Help?? |
I can replicate your results
sort is optimized to sort in place when the source and destination are the same.
I don't know if it's a bug in Tie::File when dealing with sort's optimization or a bug in sort's optimization when dealing with tied arrays, but the bug can be avoided by avoiding the optimization:
Update: Better yet,
In Section
Seekers of Perl Wisdom
|
|