in reply to Inserting content into a file at a particular location
Code is untested.
my ($offset) = grep {$lines[$_]=~/USER\s+NOTE/} (0..$#lines); splice(@lines,$offset+1,0,"@$global_variables_list");
Regards,
Murugesan Kandasamy
use perl for(;;);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Inserting content into a file at a particular location
by perlpal (Scribe) on Aug 25, 2010 at 09:15 UTC |
In Section
Seekers of Perl Wisdom