Sean Sugrue wrote:
>
> Can anyone help me,
>
> I am trying to pick up the text on the next line if the line before it has a
>"description" tag.
>
> while(<input_file>
> {
> if( /description/i ){
> @array = nextline in the file;
Do you want to use an array to hold one line or do you want all the
lines that match in the array?
$nextline = <input_file>;
Or:
push @array, scalar <input_file>;
> some processing here}
>
> }
>
> ##############################
>
> But it would even be better if
>
> ##############################
>
> while(<input_file>
> {
> if( /test_function/i){
> next line until if( /description/i ){
> @array = nextline in the file;
> some processing here;}}
>
> }
Not sure what you are trying to accomplish here.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]