Click to See Complete Forum and Search --> : Newbie extracting value from string


digital_storm
05-10-2005, 09:47 AM
Hello

I have a perlscript that extracts information from another application.
Current information is like:

Value: 5087
-- Remote UNIX connection
Verbosity is at least 7

and the value 5087 can be everything between 0 and 100000000000000000 to make it more difficult it can also be a value between +0 and +1000000000000000

I just want to be able to extract this number in this case 5087 but as I said it can be alot of different numbers/+numbers

Thanks in advance!

/D_S

digital_storm
05-10-2005, 10:14 AM
Hello again!

I solved it using

@myparam=split(" ",$myvalue);
printf($myparam[1]);

/D_S