"returns" question

[email protected] (ToddAndMargo via perl6-users)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
Hi All,

On my sub declarations, I like to use "export"

     sub abc() returns Str {...}

becasue it makes eh sub easier to figure out at
a glance when I go to maintain it.

Two exports I have not figured out are
    1) an array,
    2) an object created from a custom class.

     returns @

gets the finger wagged at me.

What is the proper syntax for these two?


Many thanks,
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~
Yesterday it worked.
Today it is not working.
Windows is like that.
~~~~~~~~~~~~~~~~~~~~~~~~
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.