[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] Can you read a file "vertically"?



Hi all:

Question: Can a file be read / parsed / coded "vertically"? Let me explain:

If this is a comma delimited file:
        do,re,mi
        fa,sol,la
        si,de,me
..I just learned how to end up with three arrays:
    @array1 = (do,re,mi)
    @aray2 = (fa,sol,la)
    @array3 =(si,de,me);

Q: is there a way (and what is it) to end up with these three arrays:
    @array1 = (do,fa,si)
    @aray2 = (re,sol,de)
    @array3 =(mi,la,me) ?

Thank you,

Riccardo Perotti
--
mailto:perotti@pobox.com



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org