Created
September 30, 2010 07:32
-
-
Save shigin/604183 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # first try | |
$ perl --version | grep v5 | |
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi | |
$ perl -MURI::Escape -E'say uri_escape_utf8 shift' "1&2" | |
$ perl -MURI::Escape -E'print uri_escape_utf8 shift' "1&2" | |
$ # wtf? | |
$ # another box | |
$ perl --version | grep v5 | |
This is perl, v5.8.8 built for amd64-freebsd | |
$ perl -MURI::Escape -E'print uri_escape_utf8 shift' "1&2" | |
Unrecognized switch: -Eprint uri_escape_utf8 shift (-h will show valid options). | |
$ # d'oh | |
$ perl -MURI::Escape -e'print uri_escape_utf8 shift' "1&2" | |
Can't locate URI/Escape.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .). | |
BEGIN failed--compilation aborted. | |
$ perl -MURI::Escape::XS -e'print uri_escape_utf8 shift' "1&2" | |
$ # mmmm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment