Skip to content

Instantly share code, notes, and snippets.

@shigin
Created September 30, 2010 07:32
Show Gist options
  • Save shigin/604183 to your computer and use it in GitHub Desktop.
Save shigin/604183 to your computer and use it in GitHub Desktop.
$ # 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