in reply to Learn Data Structures easy

Neat examples. It could be worth pointing out that data structures can be further nested. Also, usually it would be more applicable to use arrays over hash structures when wanting to index by number.

s/easy/easily/g;

Replies are listed 'Best First'.
Re^2: Learn Data Structures easy
by demerphq (Chancellor) on Feb 07, 2006 at 09:02 UTC

    Also, usually it would be more applicable to use arrays over hash structures when wanting to index by number.

    Only when the numbers being stored are densely distributed and can be offset into 0..N, when the numbers are sparsely distributed a hash is better.

    ---
    $world=~s/war/peace/g