AW: TRUE

Bart Lateur <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Organization MediaMind
Message-ID <[email protected]>
On Thu, 22 Jan 2004 07:16:11 -0000, Pense, Joachim wrote:

>So I'd rather write $VERBOSE and $STOP_ON_ERROR, living with the minor
>risk that I might inadvertently change the values.

You can reduce the risk by making them pseudo-constants (globals only):

	*VERBOSE = \1;
	print $VERBOSE;

That takes the "inadvertently" away, a normal assignment or modification
will now complain. 

	$VERBOSE++;
-->
	Modification of a read-only value attempted at ...


Of course, you can still change the value in the same way as you
originally set it.

-- 
	Bart.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.