maulin sheth
Advanced Member level 2
- Joined
- Oct 24, 2010
- Messages
- 502
- Helped
- 90
- Reputation
- 179
- Reaction score
- 90
- Trophy points
- 1,318
- Location
- Bangalore, India
- Activity points
- 4,161
Hello All,
I want to insert the new line character i.e. \n in place of space i.e. \s;
E.G.
Mauiln Sheth DFT Engineer
I want to replace all spaces with new line character.
I have done
$string =~ s/\s/\n/;
the output is :
Maulin
Sheth DFT Engineer.
So why other spaces are not replaced by \n?
What I am missing?What I have to do to achieve that?
Thanks & Regards,
I want to insert the new line character i.e. \n in place of space i.e. \s;
E.G.
Mauiln Sheth DFT Engineer
I want to replace all spaces with new line character.
I have done
$string =~ s/\s/\n/;
the output is :
Maulin
Sheth DFT Engineer.
So why other spaces are not replaced by \n?
What I am missing?What I have to do to achieve that?
Thanks & Regards,