Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open(FILE,$template); foreach (<FILE>) { if ($_ =~ m/MY_MATCH/) { &do_something; } else { print $_; } } close(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using templates
by LTjake (Prior) on Oct 07, 2002 at 12:31 UTC | |
|
Re: using templates
by zigdon (Deacon) on Oct 07, 2002 at 12:29 UTC | |
|
Re: using templates
by joe++ (Friar) on Oct 07, 2002 at 12:29 UTC |