rajkrishna89 has asked for the wisdom of the Perl Monks concerning the following question:
Im trying to extract some data from .doc files..im able to open and read but i got an issue in extracting...when my search pattern is matched i need to print the contents which is present in the next cell in the document(TAB)...
DATA:- Username: Password:
Username is in one cell and Password is in another cell...once username is matched i have to press tab to go to next cell...similarly how can i get the data from the next cell using perl...
Search Pattern:- for ($i = 0; $i <@array; $i++) { if($array[$i] =~ /Username\s*:\s*(.+)/) { $result = $1;
$arrayi contains the data of the document file...Thanks monks...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting data from table
by roboticus (Chancellor) on Sep 14, 2012 at 13:42 UTC | |
|
Re: Extracting data from table
by Anonymous Monk on Sep 15, 2012 at 00:05 UTC |