my ($offset) = grep {$lines[$_]=~/USER\s+NOTE/} (0..$#lines); splice(@lines,$offset+1,0,"@$global_variables_list");
Regards,
Murugesan Kandasamy
use perl for(;;);
In reply to Re: Inserting content into a file at a particular location
by murugu
in thread Inserting content into a file at a particular location
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |