Hi,

I have a fairly simple problem, but haven't had much luck finding the
solution on Google or the mailing list archives.  Basically, I have this
code in httpd.conf:

<Perl>
    print "Enter some value you don't want written down: ";
    my $value = <STDIN>;
    chomp $value;

    print "value = '$value'\n";

    # The code works if I do this...
    # $value = "Foobar";

    push @PerlSetVar, ["Foo" => $value];
</Perl>

The value in $value prints to stdout, but the variable "Foo" doesn't get
set to $value.  However, if I were to set $value to something
explicitly, as in the comment above, the code works fine.

Based on that, I'm guessing the problem lies with reading from <STDIN>. 
What am I missing here?

Thanks.

-chris


Reply via email to