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
In reply to Re: Extract Paragraph From Text
by kcott
in thread Extract Paragraph From Text
by perlbeginneraaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |