Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-10-24 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls