in reply to Perl Split
Hi, Here is one way to do it.
local $/; $xline=<DATA>; chomp($xline); @xline = split (/(?<=\.)\s*/, $xline); foreach(@xline){ print "$_\n"; } __DATA__ This is my first line. This is my second line. This is my third line.
Regards,
Velusamy R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Split
by graff (Chancellor) on Mar 14, 2006 at 04:09 UTC |