[Vienna-pm] slices

Johannes Fuernkranz juffi at ke.informatik.tu-darmstadt.de
Thu Nov 17 03:01:33 PST 2005


Hallo,

Ich haette mal eine schnelle Frage mit einer (hoffentlich) schnellen 
Antwort.

Ich moechte indirekt slices spezifizieren. Geht das? Wie?
Also etwas wie

my @a = qw(a b c d e f);
my $slice = "1..2,4";

my @s = @a[$slice];
# @s sollte nun (b,c,e) sein.

Danke,

Juffi


More information about the Vienna-pm mailing list