Hi, There is this warning which I can't remove :
Illegal hexadecimal digit '
' ignored at test.pl line 131, <FH> line 23.
It is the newline at the end
test.pl is the name of the program while FH is a file handle(read only). Part of my code is:
<129> $ln = <FH>;
<130> @flds = split(/ /,$ln);
Change this to
@flds = split (' ', $ln);
perldoc -f split #Read about the difference between split (' ', ...) and split (/ /, ...)
<131> if($flds[5] =~ /[a-zA-Z]+/) # Check for a hex number <132> { <133> $mtype = hex($flds[5]); <134> } <135> else <136> { <137> $mtype = $flds[5] + 0; <138> }
FH is a file handle for a text file whose contents are like:
3 CSVC -1 10 8 26 3 DRS -1 10 8 27 3 PAM -1 10 8 28 3 GRA -1 10 8 29 3 CQM -1 10 8 2A 3 CQR -1 10 8 2B
sincerely, Sachin
_________________________________________________________________
Cool new emoticons. Lots of colour! http://server1.msn.co.in/sp03/messengerpromo/index.asp On MSN Messenger V6.0
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]