Hello dear monks, a user of a script I've written that uses the URI::Escape module keeps getting an error:
Undefined subroutine &URI::Escape::uri_escape_utf8 called at myscript.pl line 375.
I cannot duplicate this error on my machine. I use it thusly:
use URI::Escape;
## lots of other stuff ##
$booktitle = URI::Escape::uri_escape_utf8($booktitle);
I'd also used it like so, without the prefix:
$booktitle = uri_escape_utf8($booktitle);
Someone else reported a similar error with that syntax, and it was fixed when I added the URI::Escape prefix to the call.
We're both running ActivePerl, he 5.8 and I 5.12, does that make a difference? Is there something I'm missing?
thanks very much -- Scott
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.