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.
In reply to Re: Perl Split
by Samy_rio
in thread Perl Split
by Gavin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |