Solved

get the output of last executed command

Posted on 2002-03-19
3
159 Views
Last Modified: 2012-05-04
I am executing a program
system("perl prgname x=bpu02031 lang=en");

How do i transfer the output of this system command to a array?
0
Comment
Question by:lakshminair
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Peewee earned 100 total points
ID: 6879521
lakshminair,
copy this into your program:

my @array = `perl prgname x=bpu02031 lang=en`;

regards
peewee

0
 

Author Comment

by:lakshminair
ID: 6879584
thanx for the prompt reply
0
 
LVL 5

Expert Comment

by:Peewee
ID: 6879588
lakshminair,
glad to be of help..

regards
peewee
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
perl to mysql 5 130
compress files in RAR using perl 13 79
Perl output collect 7 65
PERL variable conundrum 9 89
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now