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/
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
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
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
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.
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
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
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
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
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
--- [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
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
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. :)
___
> "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
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
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
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]
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
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
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
20 matches
Mail list logo