john.tm has asked for the wisdom of the Perl Monks concerning the following question:
open my $data, '+<', $INFILE1 or die "can't open\n$INFILE1\n"; while (<$data>) { chomp; my ( $data ) = split (',',) ; if ($data ne ""){ print "$_ \n"; next; } close $data or die "can't close\n$INFILE1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: read file line by line then do something and write to same file
by AnomalousMonk (Archbishop) on Jun 16, 2014 at 02:43 UTC | |
|
Re: read file line by line then do something and write to same file
by 2teez (Vicar) on Jun 16, 2014 at 03:28 UTC | |
|
Re: read file line by line then do something and write to same file
by wjw (Priest) on Jun 15, 2014 at 21:36 UTC | |
by davido (Cardinal) on Jun 15, 2014 at 22:56 UTC | |
by wjw (Priest) on Jun 15, 2014 at 23:59 UTC | |
by oiskuu (Hermit) on Jun 16, 2014 at 19:36 UTC | |
by davido (Cardinal) on Jun 16, 2014 at 19:44 UTC |