Perl – Understand List, Unary operation and Array in scalar context

The common misunderstanding in Perl is the difference between : A list : (1, 2, 3) An array : @my_array containing (1, 2, 3) The unary operation coma ‘,’: $operation1, $operation2, $operation3 Perl use the context to act practically over logically. That lead to unexpected behavior if you mislead each of this concept. The 3 … Continue reading Perl – Understand List, Unary operation and Array in scalar context

Proper usage of the roles in Perl

For everyone who doesn’t know it yet, you have to take care where you use “Moo::Role” (or Mouse::Role or Moose::Role). Moo::Role will export all methods that is declared after his declaration. Let me show an example : If you do :

and in your class :

You will have those methods injected : … Continue reading Proper usage of the roles in Perl