|
|||||||||||||||||||||||||||
On Sun, 13 Feb 2000, sslug@sslug wrote:
>> > string1;string2;string3;string4;string5;string6;string7
>> >
>> > Jeg vil have fat i string6.
>>
>> my ($d1, $d2, $d3, $d4, $d5, $string6) = split(";",$string);
>
> Du kan spare lidt ram med my ($a, $a, $a, $a, $a, $streng6)... en anden
> mulighed er
>
> $streng6 = (split(";",$string)[5];
Noget pænere, men mener du ikke
$streng6 = (split(";",$string))[5];
-Lars
--
Lars R. Clausen (http://shasta.cs.uiuc.edu/~lrclause) Hårdgrim of Westfield
"I do not agree with a word that you say, but I will defend to the death your
right to say it." --Evelyn Beatrice Hall
|
||||||||||||||
|
||||||||||||||