Re: Plus Plus operator

2011-11-24 Thread timothy adigun
Hi samjesse, using a for loop to iterate the array @subjects and at each instances, count the number of occurrence of each *member* [or element] of the array @subjects, [ and STORE] using a hash %subjects [ which of course is different from the array @subjects, though the same name was used ]

Re: Plus Plus operator

2011-11-24 Thread Alexandre Chapoutot
Hello >From the element of the array @subjects you create a hash table %subjects and its keys are the element of @subject whose their values are given by an incrementation from an undefined value (defaut consider is 0) so 1. Regards A. 2011/11/24 samjesse : > Hi > > what does this mean >  forea

Re: Plus Plus operator

2011-11-24 Thread Dermot
On 24 November 2011 03:40, samjesse wrote: > Hi > > what does this mean >  foreach $msg (@subjects) { >     $subjects{$msg}++; >  } > > thx http://perldoc.perl.org/perlop.html#Auto-increment-and-Auto-decrement -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-m

Plus Plus operator

2011-11-24 Thread samjesse
Hi what does this mean foreach $msg (@subjects) { $subjects{$msg}++; } thx -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/