in reply to Checking a header is printed already?
You could use a global variable (accessible from every place where you're potentially outputting the header) to keep track of whether it's already been printed:
unless ($header_printed) { $header_printed = print $IN->header; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking a header is printed already?
by Anonymous Monk on Oct 06, 2009 at 11:52 UTC | |
by Bloodnok (Vicar) on Oct 06, 2009 at 11:56 UTC | |
by Anonymous Monk on Oct 06, 2009 at 12:28 UTC | |
by Bloodnok (Vicar) on Oct 06, 2009 at 16:35 UTC | |
by Anonymous Monk on Oct 07, 2009 at 13:25 UTC | |
by ultranerds (Hermit) on Oct 06, 2009 at 12:11 UTC | |
by Anonymous Monk on Oct 06, 2009 at 12:25 UTC | |
by ultranerds (Hermit) on Oct 06, 2009 at 13:23 UTC |