I am reading text via STDIN within a "while (<>) { ... }" loop.
I need to read and store a variable number of strings within a "section" of incoming content until I reach a specific string in STDIN or a blank line...
--- BEGIN Example Data:
JOBS:
Butcher
Baker
Candlestick Maker
LOCATIONS:
Houston
Toledo
Moscow
Detroit
Vienna
--- END Example Data:
I feel stupid, but I cannot figure out how to read multiple "sections" of variable numbers of strings into arrays. I'm guessing there's a really slick perl module to do this, but I'm at a loss. Help Appreciated in advance.
"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
I need to read and store a variable number of strings within a "section" of incoming content until I reach a specific string in STDIN or a blank line...
--- BEGIN Example Data:
JOBS:
Butcher
Baker
Candlestick Maker
LOCATIONS:
Houston
Toledo
Moscow
Detroit
Vienna
--- END Example Data:
I feel stupid, but I cannot figure out how to read multiple "sections" of variable numbers of strings into arrays. I'm guessing there's a really slick perl module to do this, but I'm at a loss. Help Appreciated in advance.
"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.