Skip Menu |

This queue is for tickets about the Acme-MetaSyntactic CPAN distribution.

Report information
The Basics
Id: 120090
Status: rejected
Priority: 0/
Queue: Acme-MetaSyntactic

People
Owner: Nobody in particular
Requestors: PERLANCAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Option to dump all items?
Knowing how many items in a theme is also impossible because given count $count 'meta' will happily oblige supplying $count even when there are less then $count unique items in the theme.
On Fri Feb 03 19:47:39 2017, PERLANCAR wrote: Show quoted text
> Knowing how many items in a theme is also impossible because given > count $count 'meta' will happily oblige supplying $count even when > there are less then $count unique items in the theme.
The documentation explains how to do this: https://metacpan.org/pod/Acme::MetaSyntactic#Methods « If $count is 0, the whole list is returned (this may vary depending on the "behaviour" of the theme) in list context, and the size of the list in scalar context. » This also works with the `meta` CLI tool.
On Fri, 17 Feb 2017 08:47:04 GMT, BOOK wrote: Show quoted text
> On Fri Feb 03 19:47:39 2017, PERLANCAR wrote:
> > Knowing how many items in a theme is also impossible because given > > count $count 'meta' will happily oblige supplying $count even when > > there are less then $count unique items in the theme.
> > The documentation explains how to do this: > https://metacpan.org/pod/Acme::MetaSyntactic#Methods > > « If $count is 0, the whole list is returned (this may vary depending > on the "behaviour" of the theme) in list context, and the size of the > list in scalar context. » > > This also works with the `meta` CLI tool.
Yup, sorry I missed that. Later I read about the count=0 thing. BTW, I've also made an alternative CLI 'metasyn' which defaults to dumping the names, in order (while meta always shuffles the result).