develooper Front page | perl.perl6.users | Postings from May 2006

Re: Simple Print/Say Question

Thread Previous | Thread Next
From:
A. Pagaltzis
Date:
May 24, 2006 05:02
Subject:
Re: Simple Print/Say Question
Message ID:
20060524120158.GD32180@klangraum
* Steffen Schwigon <schwigon@webit.de> [2006-05-24 13:55]:
> "A. Pagaltzis" <pagaltzis@gmx.de> writes:
> > * Martin Kjeldsen <martin@martinkjeldsen.dk> [2006-05-24 12:25]:
> >> I understand this as the hash entry with key 'array' get
> >> assigned a array consisting of $count number multiplied by
> >> $scale. If that is right, we must be modifying $arg_for
> >> (%buckets) since we are adding an entry to the hash.
> >
> > $arg_for is a reference to a hash. The hash is modified, but
> > not the reference to it.
> 
> It's probably an unimplemented/buggy feature of Pugs.

Err I think you misread my mail. I meant that the code modifies
the hash, but does nothing to modify the reference, so there is
no need to make the reference read-write.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About