in reply to Re: Retrieving information from an executable program
in thread Retrieving information from an executable program

I am very grateful for your replies. I will give it a short and revert

Sam

  • Comment on Re^2: Retrieving information from an executable program

Replies are listed 'Best First'.
Re^3: Retrieving information from an executable program
by kitifu (Initiate) on Jul 25, 2010 at 20:42 UTC
    I have tried both codes and all give me the output to the console. What i now want is to assign the value to my variable so that i can do more manipulation with the data, say my $newstatus=$status;
    #!/usr/bin/perl use strict; use warnings; my ( $name, $status ) = `./retrieve 2301` =~ /(?=CID:\s*(.+))(?=STATUS +:+\s*(.+))/; my $newstatus $status; //Just be able to access the variable with data print $newstatus;