Re: How to handle "\" indicating next line
- From: usenet@xxxxxxxxxxxxxxx
- Date: 28 Dec 2005 00:44:40 -0800
Khairul Azmi wrote:
> I am writing a code that would check line by line content of a line before
> Problem occurs when there are lines that has character "\"
> indicating a new line.
Would something like this help?
#!/usr/bin/perl
local $/; #slurp mode
local $_ = <DATA>;
s!/\n\s*!!g;
print;
__DATA__
this /
is /
some stuff
this is more stuff
### OUTPUT ################
this is some stuff
this is more stuff
.
- References:
- How to handle "\" indicating next line
- From: Khairul Azmi
- How to handle "\" indicating next line
- Prev by Date: Re: why is 0 first?
- Next by Date: Re: why is 0 first?
- Previous by thread: How to handle "\" indicating next line
- Index(es):
Relevant Pages
|