Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want it to look like this:line one line info line two info line three more lines etc
I dont seem to be getting it to work with my attempt here:line one line info line two info line three more lines etc
Can someone advise how I can get this to work?use strict; open IN, "theFileName" or die "$!"; while (<IN>) { chomp; my ($line) = (split //n/); print $line; close IN or warn "$!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Making my file all one line
by ehdonhon (Curate) on Jun 06, 2003 at 01:25 UTC | |
by jmcnamara (Monsignor) on Jun 06, 2003 at 08:47 UTC | |
by ehdonhon (Curate) on Jun 06, 2003 at 10:39 UTC | |
|
Re: Making my file all one line
by Enlil (Parson) on Jun 06, 2003 at 01:43 UTC | |
|
Re: Making my file all one line
by jmcnamara (Monsignor) on Jun 06, 2003 at 08:39 UTC |