• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

get the output of last executed command

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
lakshminair
Asked:
lakshminair
  • 2
1 Solution
 
PeeweeCommented:
lakshminair,
copy this into your program:

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

regards
peewee

0
 
lakshminairAuthor Commented:
thanx for the prompt reply
0
 
PeeweeCommented:
lakshminair,
glad to be of help..

regards
peewee
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now