Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Creating a unique variable type

by LanX (Canon)
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)


Comment on Re^2: Creating a unique variable type
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-08-30 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls