in reply to Creating Arrays on the Fly

$/ was created especially for you.

Try this:

$/ = 'SQLEND'; my $response = <$remote>;
This reads in $response everything up to the next appearance of SQLEND.

Since you want an array of lines, you'd do well to add the code

my @response_line = split /\n/,$response;

Replies are listed 'Best First'.
Re: Re: Creating Arrays on the Fly
by davorg (Chancellor) on Sep 12, 2001 at 16:15 UTC