in reply to Re^3: why this couldn't work?
in thread why this couldn't work?
You can fix that in one of two ways. Either use use (which is the simplest) or write instead WWW::Curl::CURLOPT_HEADER() and WWW::Curl::Easy::CURLOPT_TIMEOUT() to disambiguate them from barewords to function calls.
Because use performs importing at compilation time, the parser knows that those functions are functions even without the parentheses. If you can't import those functions at compilation time, you'll have to disambiguate yourself or disable strict subs. (Don't disable strict subs.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: why this couldn't work?
by Anonymous Monk on Jul 01, 2011 at 17:41 UTC |