in reply to Re: Perl and WINNT write problem
in thread Perl and WINNT write problem
That's strange, USERNAME in normally set. Try this: Noting that they are {}'s not ()'s.
print "<H1>$_=$ENV{$_}</H1>\n" for key %ENV;
A couple of things. You don't need to quote the variable names unless your using interpolation to format the value of the variable together with other stuff.
You say that $username=$ENV(USERNAME); "shows nothing", which is strange, as that line has a syntax error. Have you checked the logs?
You said this is running under NT4, but not which webserver? Is this a box you have administrative access to? Are you using it local or remotely?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Perl and WINNT write problem
by demerphq (Chancellor) on Mar 09, 2003 at 15:47 UTC |