On Aug 5, Jakob Kofoed said:

>1   5001
>2   5002
>3   5003
[snip]

Are those line numbers actually in the file too?  If so, that might cause
problems for you.

>open IN, "<", "num2.txt";
>my @in = <IN>;

At this point, @in holds all the lines of the file...

>push @col1, $in[0];

... but here, you only store the FIRST line (the first element of @in) in
the @col1 array.

Other people have suggested better approaches; I'm just pointing out the
flaw in your program.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to