Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Creating a unique variable type

by LanX (Bishop)
on Mar 26, 2013 at 23:09 UTC ( #1025603=note: print w/replies, xml ) Need Help??


in reply to Re: Creating a unique variable type
in thread Creating a unique variable type

> You cannot now say my $foo : integer;

O RLY?

see attributes for enabling

my $foo :integer;

and the parser also allows "typing"

DB<105> {package Int} DB<106> my Int $x => undef

... though w/o much benefit.

Cheers Rolf

( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025603]
help
Chatterbox?
[Corion]: robby_dobby: Going to a Perl Workshop is always fun, whether registered or not ;)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2018-04-19 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?