in reply to right use of a hash table
When you refer to an element of a hash you say $hash_name{'key'}, but to refer to the whole hash you must say %hash_name. So change your mys:
Philmy %M4; my %M4_compteur;
The Gantry Web Framework Book is now available.
In Section
Seekers of Perl Wisdom