ulaksh has asked for the wisdom of the Perl Monks concerning the following question:
use warnings; use strict; my $file_c = "file1.csv"; open(my $data, '<', $file_c) or die "Could not open $!\n "; while (my $line = <$data>) { next if ($. == 1); chomp $line; my @fields = split "," , $line; print"$fields[0] fields[1]"; }
my output show
Could not open No such file or directory at csvfile.pl line 4.Please let me know where I am doing the mistake, script is running on windows
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: csv file is not opening using use strict
by chromatic (Archbishop) on Sep 06, 2012 at 23:35 UTC | |
|
Re: csv file is not opening using use strict
by aitap (Curate) on Sep 07, 2012 at 19:09 UTC | |
|
Re: csv file is not opening using use strict
by Rudolf (Pilgrim) on Sep 06, 2012 at 23:13 UTC | |
by chromatic (Archbishop) on Sep 06, 2012 at 23:30 UTC | |
|
Re: csv file is not opening using use strict
by Khen1950fx (Canon) on Sep 07, 2012 at 00:31 UTC | |
by chromatic (Archbishop) on Sep 07, 2012 at 01:28 UTC | |
by GrandFather (Saint) on Sep 07, 2012 at 01:07 UTC |