develooper Front page | perl.perl6.users | Postings from January 2019

**@args question

Thread Next
From:
ToddAndMargo via perl6-users
Date:
January 3, 2019 02:40
Subject:
**@args question
Message ID:
300f0682-5ea2-9eb6-b5de-c5d683f03a37@zoho.com
Hi All,

Looking at

    https://docs.perl6.org/routine/print

I see

    multi sub print(**@args --> True)

Question.  If I wanted to create my own print routine
using **@args, how would I declare it?

    sub printx( **@args data ) {...}


Many thanks,
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you say, "I wrote a program that
crashed Windows," people just stare at
you blankly and say, "Hey, I got those
with the system, for free."
      -- Linus Torvalds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About