Hi Everyone,
I'm having a problem with extracting certain strings within a line. I tried several ways, but not very inefficient. Can somebody help me with it? thanks a lot.
The line might be one of the following:
KEY1 3 4 T KEY2
KEY1 3 4 T KEY2 456 67 KEY3
KEY1 3 4 T KEY2 456 67 KEY3
And I need to extract the information between KEYS.
I'm using substr and pos to extract the information now, but very complicated. Are there any better ways to do it. please help me with it. I really appreciate it. - tao
perldoc -f split
my @list = split(/KEY/, $line);
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]