Why do you load Text::CSV, you don't use it. Your data is not comma seperated, why are you using this as a separator? You've been given many working exaples for reading files. Look at them, compare it to your use of open. What do you notice? Your code does not have 15 lines (as per your error message), and as posted does not recreate the problem you claim. How do I post a question effectively?, and as usual you posted in the wrong place Where should I post X?.
Update: You don't need both
#!/usr/bin/perl -w
and
use warnings;
Update: fixed typo.
In reply to Re: Reading a single column from csv using perl
by marto
in thread Reading a single column from csv using perl
by rammohan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |