Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chanting in the Monastery: (3)
As of 2015-07-05 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls