Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

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 perusing the Monastery: (3)
As of 2016-10-21 00:39 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (284 votes). Check out past polls.