Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: text to array

by torres09 (Acolyte)
on Jun 06, 2013 at 07:50 UTC ( #1037395=note: print w/ replies, xml ) Need Help??

in reply to Re: text to array
in thread text to array

#!/usr/local/bin/perl open (MYFILE, 'test1234.txt'); while (<MYFILE>) { chomp; @myNames= split(/\t/, $_); $i=0; print "@myNames \n"; while($i<=$#myNames) { $names12[$i]=@myNames[$i].','; $i++; } } print "@names12 \n"; exit;

this is what i did , so if you can point out the mistakes , it will help

Comment on Re^2: text to array
Download Code
Replies are listed 'Best First'.
Re^3: text to array
by Corion (Pope) on Jun 06, 2013 at 07:54 UTC

    Your mistake is that you do not tell us what you expect, and how your program fails to work for you.

    Also, please show 10 lines of relevant input, and the corresponding output, together with what the output should be.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-11-27 17:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls