Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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 http://perlcabal.org/syn/. 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

@crew.elems
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?

—John

Comment on Fathoming Perl6 documentation
Download Code
Re: Fathoming Perl6 documentation
by lidden (Deacon) 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!

      —John

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 http://perlcabal.org/syn/S29.html

    daniel

Log In?
Username:
Password:

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
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-12-27 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls