in reply to Re: Can the username be represented differently ?
in thread Can the username be represented differently ?

Hi,

I get a "premature end of script headers" message, when trying with this

#!/usr/local/bin/perl -w print $>; print $/; print $<; print $/;


Peter

Replies are listed 'Best First'.
Re^2: Can the username be represented differently ?
by tachyon (Chancellor) on Jun 28, 2004 at 06:06 UTC

    I get a "premature end of script headers" message, when trying with this

    That would be because you are using CGI and not sending any headers :o) See CGI Help Guide

    #!/usr/local/bin/perl -w print "Content-Type: text/plain\n\n"; print $>; print $/; print $<; print $/;

    cheers

    tachyon

      Boy, am I "rusty" or what, adding that line of code you suggested did the trick, the output to the browser is now:

      32149
      32149

      Thanks a lot,

      Peter