mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:
Any help will be appreciated.while (<>) { $line = $_; chomp $line; print $line ; next; if ($line =~/^;/){ print "$line\n"; } else { print "$line\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: append line to previous line in txt file
by ysth (Canon) on Jul 09, 2008 at 05:41 UTC | |
by mmittiga17 (Scribe) on Jul 09, 2008 at 06:24 UTC | |
|
Re: append line to previous line in txt file
by prasadbabu (Prior) on Jul 09, 2008 at 05:36 UTC | |
|
Re: append line to previous line in txt file
by pc88mxer (Vicar) on Jul 09, 2008 at 06:28 UTC | |
by johngg (Canon) on Jul 09, 2008 at 10:29 UTC | |
by pc88mxer (Vicar) on Jul 09, 2008 at 13:34 UTC | |
by johngg (Canon) on Jul 09, 2008 at 21:23 UTC |