Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-07-18 05:25 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (383 votes). Check out past polls.