in reply to How to call curl to make a Get request with parameters from perl ?

And you are sure $stock contains exactly AAPL, and not a trailing space, newline or some other character? You don't seem to chomp off the newline when reading the line for instance.
  • Comment on Re: How to call curl to make a Get request with parameters from perl ?

Replies are listed 'Best First'.
Re^2: How to call curl to make a Get request with parameters from perl ?
by perl0101 (Initiate) on May 19, 2009 at 01:13 UTC

    Thank you. The problem is soloved by trailing space for $stock. I add one more step: $stock =~ s/\s+$//;

    This problem makes me confused a lot. Thank you again.