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 ]
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
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
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/