Angel has asked for the wisdom of the Perl Monks concerning the following question:
with this text file:my $outputpage; open(TEMPLATE, "default_redirect.html") or die "can't open redirect page $!"; while( <TEMPLATE> ) { $outputpage .= <TEMPLATE>; } close(TEMPLATE);
but it is skipping the odd numbered lines any clue why?<head> <META HTTP-EQUIV="Refresh" CONTENT="1;URL="http://my_server.com/new_us +er.cgi?id=<var>ID</var>&template=index.shtml"> </head> <body> Enter appropriate school page here </body>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading in Text File and skipping lines
by insensate (Hermit) on Nov 07, 2002 at 22:05 UTC | |
by shemp (Deacon) on Nov 07, 2002 at 22:33 UTC | |
by graff (Chancellor) on Nov 08, 2002 at 04:16 UTC | |
|
Re: Reading in Text File and skipping lines
by DamnDirtyApe (Curate) on Nov 07, 2002 at 22:15 UTC | |
by dingus (Friar) on Nov 08, 2002 at 06:55 UTC | |
by BrowserUk (Patriarch) on Nov 08, 2002 at 09:58 UTC | |
|
Re: Reading in Text File and skipping lines
by Wonko the sane (Curate) on Nov 07, 2002 at 22:13 UTC |