
BillKSmith
Veteran
Nov 30, 2010, 1:01 PM
Post #2 of 2
(289 views)
|
|
Re: [challakcr] A question on Hashes
[In reply to]
|
Can't Post
|
|
Please do not post multiple copies of your question. Always use the strict and warnings pragmas. Fix the errors that they report. Your assignment statement assigns an array to a scalar element of a very complex data structure. You probably do not intend this structure, but without strict, perl creates it for you. When perl assigins an array to a scalar, it assigns the length of the array. Your first statement requires a dw (refer perldoc -f dw). With strict, perl will report that there is an error in this statement. Good Luck, Bill
|