Why don't you print $line if not defined $data; ?
Even better use Data::Dumper to check for unexpected characters.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: Use of uninitialized value $data
by LanX
in thread Use of uninitialized value $data
by ImJustAFriend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |