On Saturday 22 April 2006 17:26, Johan Meskens CS3 jmcs3 wrote:
> hello
Hi Johan
>
>
> i want to delete an element from an anonymous array in a hash with:
>
> delete ${$alltheworlds{ $d }}[$num];
>
First type the command
perldoc -f delete
This explains why you are receiving the results you are receiving.
> now instead of being being deleted it turns out be 'undef'
>
> and
> my @array = ( undef, "one", "two" );
> print scalar @array gives :3
>
> so the element is only "half" deleted
>
Second type the command
perldoc -f splice
Hope this helps
> where is the lack in my thinking and actions
> - excused by the night -
>
> thanks
> jmcs3
>
>
>
>
>
>
>
> --------the following could be unreadable @ 1145751971 :::
> m|/ord
> , ,
> , -
> , d
> , become
> , to
> , |x|)|x
> , /
> , /
> , >
> , |
> , 0
> ,
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>