in reply to Retrieving information from an executable program

my ( $name, $status ) = `./retrive 2301` =~ /(?=CID:\s*(.+))(?=STATUS: +\s*(.+))/;

Replies are listed 'Best First'.
Re^2: Retrieving information from an executable program
by kitifu (Initiate) on Jul 25, 2010 at 20:06 UTC
    I am very grateful for your replies. I will give it a short and revert

    Sam

      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;