Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Data structures in Perl. A C programmer's perspective.

by RichardK (Priest)
on Sep 06, 2013 at 15:34 UTC ( #1052729=note: print w/ replies, xml ) Need Help??


in reply to Data structures in Perl. A C programmer's perspective.

Really, I just don't understand what point you are trying to make.

Perl already has functions to manipulate arrays and will do everything you need without having to write all that code. see push pop shift unshift and splice.

It's usually a mistake to mechanically translate C structures into perl, as perl has many more features available (hashes for one). It's OK to write a linked list in perl as a learning exercise but I wouldn't use it for anything serious.


Comment on Re: Data structures in Perl. A C programmer's perspective.
Re^2: Data structures in Perl. A C programmer's perspective.
by code-ninja (Scribe) on Sep 06, 2013 at 16:25 UTC
    :-)

    Well, I'm not trying to make a point, thats the point. Its just I was sitting idle and I've been dabbling with Perl for almost a month now, I was just trying to get my understandings and learnings commented on :-).

    Yeah accepted that Perl has many more features and as you said, this was a learning exercise... I was just trying to relate what I already know with what is new. Kinda umm mnemonics if you may.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-09-21 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls