Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
and the pool shimmers...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-01-20 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?