Path: utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!munnari.oz.au!samsung!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!news From: flee@guardian.cs.psu.edu (Felix Lee) Newsgroups: comp.lang.perl Subject: Re: wishlist: const Message-ID: Date: 12 Sep 90 12:39:31 GMT References: <1990Sep5.163210.5416@mentor.com> Sender: news@cs.psu.edu (Usenet) Organization: Penn State Computer Science Lines: 14 Supersedes: Nntp-Posting-Host: guardian.cs.psu.edu > const($c) = 1; # initialize $c It makes more sense this way: $c = 1; readonly($c); or readonly($c = 1); If you want a const declaration rather than a readonly statement, you can fake it with subroutines: sub c { 1; } In fact, the makelib script uses this style of constant. -- Felix Lee flee@cs.psu.edu