yommy1831 has asked for the wisdom of the Perl Monks concerning the following question:
Now, i want to use fgets or any other function to break the file into individual records. What code can I use to implement this. Any help will be appreciatedmy $filename = 'filename.txt'; open(my $fh, '<', $filename) or die "Could not open file '$filename' $!"; while (my $row = <$fh>) { chomp $row; print "$row\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to use fgets to Break file into individual records
by Corion (Patriarch) on Apr 08, 2015 at 15:14 UTC | |
Re: how to use fgets to Break file into individual records
by mr_mischief (Monsignor) on Apr 08, 2015 at 16:29 UTC | |
Re: how to use fgets to Break file into individual records
by bitingduck (Deacon) on Apr 08, 2015 at 15:37 UTC | |
Re: how to use fgets to Break file into individual records
by Marshall (Canon) on Apr 09, 2015 at 05:43 UTC |