develooper Front page | perl.perl5.porters | Postings from June 2003

my SLICE = VALUE ?

Thread Next
From:
Jarkko Hietaniemi
Date:
June 26, 2003 03:17
Subject:
my SLICE = VALUE ?
Message ID:
20030626101524.GE21078@vipunen.hut.fi
(Once again) I wished for this

	my SLICE = VALUE;

to work, e.g.

	my @hash{@_} = ();

to create a "set" of the sub arguments.  In other words

	my @hash{@_} = ();

would be identical to

	my %hash; @hash{@_} = ();

Are there good reasons why this would/could/should not work?

This feature would be more likely to be useful for hash slices
than for array slices, at least based on my limited imagination.

The syntax

	my SLICE;

would be kind of pointless.

-- 
Jarkko Hietaniemi <jhi@iki.fi> http://www.iki.fi/jhi/ "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen

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