code: def list_():
      '''
      List installed Perl modules, and the version installed
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cpan.list
      '''
      ret = {}
      cmd = 'cpan -l'
      out = __salt__['cmd.run'](cmd).splitlines()
      for line in out:
          comps = line.split()
          ret[comps[0]] = comps[1]
      return ref list_():
      '''
      List installed Perl modules, and the version installed
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cpan.list
      '''
      ret = {}
      cmd = 'cpan -l'
      out = __salt__['cmd.run'](cmd).splitlines()
      for line in out:
          comps = line.split()
          ret[comps[0]] = comps[1]
      return ret
docs: List installed Perl modules, and the version installed
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cpan.list