Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 wandering the Monastery: (3)
As of 2015-10-09 01:36 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls