use strict; $; =q/u/; use CGI ":standard" ;$_=" M:&5A9& 5R+ '". "-T 87) T7V AT;6 PH) T". "I! 0T\@G*2P G2 G5S=\"!". "A; F]T:&5R( &-G :2!H\n/". "86-K97 (G+ &5N 9%]H =&U L"; s/ //g; ;$" =$_ =unpack $;, $_; print map eval ,split /,/ ;#;
This worked right on three of my four systems (W2K, SunOS, and FreeBSD), but only partly under Linux. As a check, it should output complete and valid HTML 2.0.

Replies are listed 'Best First'.
RE: Not just a PH
by infoninja (Friar) on May 26, 2000 at 18:37 UTC
    It works fine for me
    Not a single error back
    Is there an error ?
RE: Not just a PH
by Anonymous Monk on May 28, 2000 at 22:53 UTC
    I don't get this. Do i run it on the command line? I tried running the script but it just said "<offline: enter name=value pairs on standard input>" what do i do?
      It should work from the command line, provided you have CGI.pm installed. Just run perl, paste the code in, then type in the appropriate EOF character. Alternatively, put the code in its own file with a valid shebang line at the top.
RE: Not just a PH
by mcwee (Pilgrim) on May 29, 2000 at 22:19 UTC
    Neat, but I got a wiered message with this running it from the command line (and am not sure of the message is part of the motif, or something funky.)

    Msg read: "(offline mode: enter name=value pairs on standard input)"

    I didn't need to type in any name=value pairs, just hit Ctrl-D and then the script would finish running, outputting as intended. Can anyone explain to me what that message was all about? Thanks.

    The Autonomic Pilot

      That's what CGI.pm does when the program is run from the command line. Typically it operates in a CGI environment (duh ;-), where it gets form input from the environment or STDIN. But when the script is run from the command line, it would be a pain to do the requisite formatting which your script would undo anyway, so CGI.pm puts up that prompt to allow you to put in form variable pairs directly, before the script runs. I just kind of assumed everybody had used CGI.pm before, whoops :-). Oh yeah, Ctrl-D inputs EOF on *nix systems; use Ctrl-Z for Windows.