Re: Linked lists

2007-09-15 Thread Somu
Oh..thanks everyone. Now i understand the difference between references and pointers. Then, i got to know something of C link list from a perl list.. Hahaha. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Linked lists

2007-09-14 Thread Chas Owens
On 9/14/07, John W. Krahn <[EMAIL PROTECTED]> wrote: snip > > Does perl compiler > > use this link list concept and keeps it hidden from us? > > I haven't read the source code but it probably does somewhere. snip I just took a quick look and it appears as if AVs (the implementation of Perl's array

Re: Linked lists

2007-09-14 Thread John W. Krahn
t and delete elements at any location. Linked lists also use more memory because you have to store a pointer with every element of the list (or two if you are using a doubly linked list.) Does perl compiler use this link list concept and keeps it hidden from us? I haven't read the sourc

Re: Linked lists

2007-09-14 Thread Somu
Well, now i know something more. Can't we treat references as pointers? We use link list in C for the reason that an array needs continuous memory locations like 1 2 3 4 5 6 .. And when the size is big, it may fail. So, we use link list. And pushing things into a C array is not allowed. So we do th

Re: Linked lists

2007-09-13 Thread John W. Krahn
Somu wrote: Hi list, Hello, Recently i've been learning a bit of C programming. Congratulations. I used data structures and then linked lists .. Does perl have this concept? No. C is a low level language and uses pointers to create linked lists and Perl does not have pointers.

Re: Linked lists

2007-09-13 Thread Daniel Kasak
On Fri, 2007-09-14 at 08:45 +0530, Somu wrote: > Hi list, > Recently i've been learning a bit of C programming. I used data > structures and then linked lists .. Does perl have this concept? Hashes? I'm not sure what a linked list is. I've *briefly* read some stuff on

Re: Linked lists

2007-09-13 Thread Chas Owens
On 9/13/07, Somu <[EMAIL PROTECTED]> wrote: > Hi list, > Recently i've been learning a bit of C programming. I used data > structures and then linked lists .. Does perl have this concept? > Linked list helps in good memory management. Does perl automates > memory manageme

Linked lists

2007-09-13 Thread Somu
Hi list, Recently i've been learning a bit of C programming. I used data structures and then linked lists .. Does perl have this concept? Linked list helps in good memory management. Does perl automates memory management for us? Also, all the C variables are bound to be declared at the to

Re: "Linked Lists" in Perl

2005-11-16 Thread Jay Savage
On 11/16/05, Shawn Corey <[EMAIL PROTECTED]> wrote: [snipped misinformation] Shawn, I'm not sure where you're headed with this (I didn't see the question it is in reply to) but take another look at perlfaq4. Linked lists are normally implemented in Perl as hasrefs, and de

"Linked Lists" in Perl

2005-11-16 Thread Shawn Corey
Handling linked lists in Perl is not the same as in C. You can emulate them with arrays and manipulate them by using Perl's array functions. Create a list: my @list = (); Clear the list: @list = (); Add an $item:push

Re: linked lists? [OT]

2003-02-17 Thread Paul
--- [EMAIL PROTECTED] wrote: > Paul <[EMAIL PROTECTED]> wrote: > > Felix Geerinckx <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] (Jc) wrote: > > > > How would such a thing be done with Perl? > > > You may want to take a look at O'Reilly's "Mastering Algorithms > > > with Perl", by Jon Orwant

Re: linked lists? [OT]

2003-02-17 Thread wiggins
a thing be done with Perl? This may help me > > > understand C's version a little better. > > You may want to take a look at O'Reilly's "Mastering Algorithms with > > Perl", by Jon Orwant, Jarkko Hietaniemi and John Macdonald, which has > > a w

Re: linked lists? [OT]

2003-02-17 Thread Paul
eilly's "Mastering Algorithms with > Perl", by Jon Orwant, Jarkko Hietaniemi and John Macdonald, which has > a whole chapter on advanced data structures, including linked lists. > felix It's the one with a wolf on the cover, if you're hunting it in a bookstore. :) ___

Re: linked lists?

2003-02-17 Thread Paul
> "JC(oesd)" wrote: > I just had a friend explain in some little detail about linked > lists in C using structures. > How would such a thing be done with Perl? > This may help me understand C's version a little better. The idea is simply to have one thing tell yo

Re: linked lists?

2003-02-17 Thread Rob Dixon
Jc wrote: > I just had a friend explain in some little detail about linked lists > in C using structures. > > How would such a thing be done with Perl? This may help me > understand C's version a little better. > > If you need more information than this, I can provide

Re: linked lists?

2003-02-17 Thread Dave K
Jim, Some time ago a Computer Sci student was working on Linked Lists and posted some code she needed help with. > How would such a thing be done with Perl? Preuse, run, modify and complete this code (it needs a way to remove a center link, amoung other things. I don't take credit

Re: linked lists?

2003-02-16 Thread Felix Geerinckx
o Hietaniemi and John Macdonald, which has a whole chapter on advanced data structures, including linked lists. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: linked lists?

2003-02-16 Thread R. Joseph Newton
Hi Jim, "JC(oesd)" wrote: > I just had a friend explain in some little detail about linked lists in C > using structures. > > How would such a thing be done with Perl? In brief, Perl already has a built-in linked list structure. It is called Array. > This may help me

Re: linked lists?

2003-02-16 Thread Wiggins d'Anconia
JC(oesd) wrote: I just had a friend explain in some little detail about linked lists in C using structures. How would such a thing be done with Perl? This may help me understand C's version a little better. If you need more information than this, I can provide it...I think :) Well a l

linked lists?

2003-02-16 Thread JC(oesd)
I just had a friend explain in some little detail about linked lists in C using structures. How would such a thing be done with Perl? This may help me understand C's version a little better. If you need more information than this, I can provide it...I think :) - Jim -- To unsubscri