in reply to Console output != file output
Whenever you have a problem like this, don't just "print".
Now you will see all unprintable characters and you can continue programming instead of blindly guessing =)use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper $type;
In Section
Seekers of Perl Wisdom