Advertisement

06.29.2008 at 06:37PM PDT, ID: 23525714
[x]
Attachment Details

Creating separate array from the contents in the file

Asked by Andys1 in Perl Programming Language, Linux, CGI Scripting

Tags: perl

Hello,

I have got one sql command which has got several "go" commands. I wan to

1. Remove go commands
2. And create separate array elements whereever go was found.

For. e.g.

SQL1
SQL2
go
SQL3
go
SQL 4
SQL 5
SQL 6
go

then the output would be
@arrray = { "sql1 sql2", "sql3", "sql 4 sql5 sql6"};

Start Free Trial
[+][-]06.29.2008 at 07:12PM PDT, ID: 21896265

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Linux, CGI Scripting
Tags: perl
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.29.2008 at 07:28PM PDT, ID: 21896322

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 07:37PM PDT, ID: 21896346

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628