in reply to Re: How to implement Linked List
in thread How to implement Linked List

Hi

    Felt good to see your prompt reply. Actually i was exploring Perl and thought of implementing the Linked list concept which might be Useful in for me in Future purposes........ So thought of trying it out

Work Hard Party Harderrr!!
Sushil Kumar

Replies are listed 'Best First'.
Re^3: How to implement Linked List
by Melly (Chaplain) on Dec 18, 2006 at 13:29 UTC

    As others have said, linked lists are never really necessary in Perl.

    See How do I handle linked lists? for an explanation (as well as a way to implement them).

    map{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
    Tom Melly, pm@tomandlu.co.uk