# perl and perl package install??

**URL:** <https://forum.ansible.com/t/perl-and-perl-package-install/36713>\
**Category:** Ansible Project\
**Created:** [June 10, 2022, 10:30am UTC](https://forum.ansible.com/t/perl-and-perl-package-install/36713 "2022-06-10T10:30:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivakumar\_Venkatasw](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@Shivakumar\_Venkatasw](https://forum.ansible.com/u/Shivakumar_Venkatasw)\
**Post date:** [June 10, 2022, 10:30am UTC](https://forum.ansible.com/t/perl-and-perl-package-install/36713/1 "2022-06-10T10:30:50Z")

</div>

Hii all…  
my playbook view like this…

---

<div class="post-metadata">

**Author:** ![Roberto\_J\_R\_Paz](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@Roberto\_J\_R\_Paz](https://forum.ansible.com/u/Roberto_J_R_Paz)\
**Post date:** [June 10, 2022, 12:38pm UTC](https://forum.ansible.com/t/perl-and-perl-package-install/36713/2 "2022-06-10T12:38:47Z")

</div>

It looks to me there is a wrong format in the task. According to:

[https://docs.ansible.com/ansible/latest/collections/community/general/cpanm\_module.html](https://docs.ansible.com/ansible/latest/collections/community/general/cpanm_module.html)  
[https://docs.ansible.com/ansible/latest/collections/ansible/builtin/items\_lookup.html](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/items_lookup.html)

it should be something like this:

- name: install perl modules  
community.general.cpanm:  
name: “{{ item }}”  
with\_items:
- DBM::Deep
- Digest::MD5
- Encode
