http://www.perlmonks.org?node_id=990984


in reply to How can I store a scalar variable, coming out of a do-until loop, as an element in an array for further operations?

I think it might help if you replace

@all_sentences=(my $sentence);

with

push @all_sentences, $sentence;
  • Comment on Re: How can I store a scalar variable, coming out of a do-until loop, as an element in an array for further operations?
  • Select or Download Code