hi guys,
i just did printing to a certain file
[CODE=perl]
#!perl\bin\perl
use strict;
use warnings;
my $t;
my @ok;
use Net::Telnet();
$t = new Net::Telnet;
$t->open("ip_addre ss");
$t->print("command ");
$t->print("command ");
$t->print("command ");
$t->print("command s");
@ok=$t->getlines(timeo ut=>300);
open(FILE, ">c:\\docum ents and settings\\clong \\desktop\\file .txt");
print FILE ("@ok");
[/CODE]
so i actually have outputs in my text file say
CODE SERVICE........ ......... E34
is there a way i can just extract the value E34 and put it into say a variable $temp??
i just did printing to a certain file
[CODE=perl]
#!perl\bin\perl
use strict;
use warnings;
my $t;
my @ok;
use Net::Telnet();
$t = new Net::Telnet;
$t->open("ip_addre ss");
$t->print("command ");
$t->print("command ");
$t->print("command ");
$t->print("command s");
@ok=$t->getlines(timeo ut=>300);
open(FILE, ">c:\\docum ents and settings\\clong \\desktop\\file .txt");
print FILE ("@ok");
[/CODE]
so i actually have outputs in my text file say
CODE SERVICE........ ......... E34
is there a way i can just extract the value E34 and put it into say a variable $temp??
Comment