Just like \@ requires that the arg starts with "@", \$ requires that the arg starts with "$".
foo(${\ "constant" }); foo(${\ bar() }); &foo(\ "constant" ); &foo(\ bar() );
Perl could be changed to accept constants. (I think it's based on opcodes, not symbols.) However, it defies the expectation of a writable value (\$) implies.
In reply to Re: Prototype for constant items???
by ikegami
in thread Prototype for constant items???
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |