Try a split.
here is a small example.
$x='123.345.567.90 => abcd';
($y1,$y2)=split ('=>',$x );
print "y is $y1 and $y2";
 $y2 would have the value you are looking for

-----Original Message-----
From: Mike Singleton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 12:44 PM
To: [EMAIL PROTECTED]
Subject: parsing question


How would I parse this output to html and only include the last word
after the => ? using the following code?





Code:

See attached script



Output:

1.3.6.1.4.1.9.10.19.1.3.1.1.3.96908838.0 => fac922

1.3.6.1.4.1.9.10.19.1.3.1.1.3.97214883.0 => fac972

1.3.6.1.4.1.9.10.19.1.3.1.1.3.97299103.0 => fac590

1.3.6.1.4.1.9.10.19.1.3.1.1.3.97475922.0 => fac172

1.3.6.1.4.1.9.10.19.1.3.1.1.3.97498052.0 => fac402

1.3.6.1.4.1.9.10.19.1.3.1.1.3.97904146.0 => fac625

1.3.6.1.4.1.9.10.19.1.3.1.1.3.98010825.0 => fac594



===

Mike Singleton CCNA, CNE, MCSE

Network Analyst

(253) 272-1916  x1259

(253) 405-1968 (cellular)

[EMAIL PROTECTED]





DaVita Inc.

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin


Reply via email to