FAQ

Steffen Schwigon writes:
multi sub talk () { say 'Loose Talk Is Noose Talk.'; }
multi sub talk (String $msg) { say $msg; }
multi sub talk (String $msg, Int $times) { say $msg x $times; }
BTW, because we are just on-topic, can someone explain, when these
types above are used. They seem pretty useless in my example but it
looked that nice. :-)

How do I extend the example to really check the parameter types. Some
kind of "use strict" anywhere?

GreetinX
Steffen
--
Steffen Schwigon <schwigon@webit.de>
Dresden Perl Mongers <http://dresden-pm.org/>

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 14 | next ›
Discussion Overview
groupperl6-users @
categoriesperl
postedJun 21, '06 at 2:41p
activeJun 28, '06 at 2:20a
posts14
users7
websiteperl6.org

People

Translate

site design / logo © 2021 Grokbase