[ic] Possible minor bug (?): '-' and $Scratch->{var-name}

Mike Heins interchange-users@interchange.redhat.com
Fri Aug 24 17:52:00 2001


Quoting Ed LaFrance (edl@newmediaems.com):
> At 04:47 PM 08/24/2001 -0400, you wrote:
> >Quoting Ed LaFrance (edl@newmediaems.com):
> > > Hi all -
> > >
> > > Working on some code in an IC 4.6.5 catalog, I found that I could set and
> > > view the contents of a scratch variable which contains a dash in its name
> > > using IC tags:
[snip]
> 
> I guess this goes deeper.

Believe me, it doesn't. It isn't a bug in Interchange and every
Perl 5.004 and higher on the planet operates the same way. It is
just a shortcut to not have to quote hash keys -- prior to 5.004
you had to quote them early and often. It makes the code much
more readable to not have to quote them, IMHO.

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

In character, in manners, in style, in all things, the supreme excellence
is simplicity. -- Longfellow