in reply to Extract Paragraph From Text
G'day perlbeginneraaa,
Welcome to the Monastery.
"I expect the code returns the paragraphs, however, I got the whole text back."
You need to show us exactly what output you got. I ran your code without any problems. Here's the (cut-down) output I got:
New Paragraph: Assembly and Manufacturing **************************************** New Paragraph: The Company's assembly and manufacturing operation +s include PCB assembly and the manufacture of subsystems and complete products. Its PCB assem +bly ... Company has invested in FICO, a producer of injection molded plastic f +or Asia electronics companies with facilities in Shenzhen, China. **************************************** New Paragraph: As OEMs seek to provide greater functionality in s +maller products, they increasingly require advanced manufacturing technologies and processes +. Most of ... performance. The Company also provides traditional PTH electronics ass +embly using PCBs and leaded components for lower cost products.; ****************************************
"I am quite confused with these errors."
You don't show any errors. I added this to the start of your code:
use strict; use warnings; use autodie;
No errors or warnings were emitted.
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extract Paragraph From Text
by perlbeginneraaa (Novice) on Sep 08, 2015 at 15:18 UTC | |
by 1nickt (Canon) on Sep 08, 2015 at 15:28 UTC | |
by perlbeginneraaa (Novice) on Sep 08, 2015 at 15:37 UTC | |
by 1nickt (Canon) on Sep 08, 2015 at 15:50 UTC | |
by AnomalousMonk (Archbishop) on Sep 08, 2015 at 15:51 UTC |