in reply to Re: Re: Re: Using a Sub to pull info. from a Text File
in thread Using a Sub to pull info. from a Text File

my @linescore; my @everything_else; while(<DATA>) { if(/^LINESCORE$/ .. /^\s*$/) { push @linescore, $_; } else { push @everything_else, $_; } }

bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.

  • Comment on (bbfu) (golf? or just TIMTOWTDI?) Re(4): Using a Sub to pull info. from a Text File
  • Download Code