Trina Espinoza wrote:
Have a question regarding hashes. Lets say I wanted a list as one of the values in my hash for the reason that I would want to constantly push values into that list. ..
$dataHash{"$fileName"}{count} = 1;
$dataHash{"$fileName"}{increment} = push(@array,$fileNumber); ###PROBLEM HERE!
This is wrong. It should be:
push(@{$dataHash{"$fileName"}{increment}}, $fileNumber);Look the documentation for 'push'.
$dataHash{"$fileName"}{extension} = $fileExtension;
How would I push some data into the $dataHash{"$fileName"}{increment} ???
Do I have specify that$dataHash{"$fileName"}{increment} will equal a list previous to this???
Thanks in advance for reading this response.
-T
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
