in reply to Re: Re: Surprising Syntax
in thread Surprising Syntax
TEST is a simple unquoted string, hence it gets quoted, and hence, it's not a constant.
Compare:
That also prints the string time, and not a number.my %h = (time => 0); print keys %h;
You could always use +TEST or TEST(), as discussed in the manual page of constant.pm.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Surprising Syntax
by strat (Canon) on Aug 13, 2002 at 12:54 UTC | |
by Abigail-II (Bishop) on Aug 13, 2002 at 13:02 UTC |