Outputs:use constant KEY => "key"; my %h = ( +KEY => "data" , KEY() => "data",); $, = "\n"; print "Perl vers: $]", keys %h;
Perl vers: 5.006001 KEY key
In reply to Re: Re: use constant for strings (unary plus)
by rir
in thread use constant for strings
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |