Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Fathoming Perl6 documentation

by John M. Dlugosz (Monsignor)
on Feb 24, 2008 at 01:39 UTC ( #669801=perlquestion: print w/replies, xml ) Need Help??
John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:

According to the Wiki, the official documentation is I tried searching for ".last" in the search box and it found nothing, yet I found it mentioned in the S04 under control structures. I search for ".elems" and it doesn't find that. "elems" without the dot doesn't work either.

I re-read the "bits and pieces" sections, but on arrays it talks about declaring and indexing, nothing about what built-in methods are available. The statement

works in Pugs, after defining @crew of course. But where is documentation on the .elems method, and the list of available methods? And what replaced .last that was used in the O'Reilly book and now is only used as a control structure inside a loop?


Replies are listed 'Best First'.
Re: Fathoming Perl6 documentation
by lidden (Curate) on Feb 24, 2008 at 17:20 UTC
    The elems method is in s02 under 'Built-In Data Types'
    The section begins with:

    To get the number of elements in an array, use the .elems method. You can also ask for the total string length of an array's elements, in bytes, codepoints or graphemes, using these methods .bytes, .codes or .graphs respectively on the array.

      Thanks. I guess I should download all the S-- files and grep locally. So much for the on-page search box!


Re: Fathoming Perl6 documentation
by ruoso (Curate) on Feb 25, 2008 at 09:59 UTC

    For built-in functions and basic APIs, you can look at


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://669801]
Approved by pc88mxer
Front-paged by Old_Gray_Bear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-10-21 23:20 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.