Skip to content

Instantly share code, notes, and snippets.

@xtetsuji
Last active August 29, 2015 14:17
Show Gist options
  • Save xtetsuji/e6f3129cf5e66840e7eb to your computer and use it in GitHub Desktop.
Save xtetsuji/e6f3129cf5e66840e7eb to your computer and use it in GitHub Desktop.
This Perl program causes wonder error. Because one space in it is fake as Unicode.
#!/usr/bin/perl
use v5.10;
use strict;
use warnings;
for my $i (1..10) {
  say "num is $i";
}
__END__
$ perl -wc include-no-break-space.pl
Unrecognized character \xC2; marked by <-- HERE after <-- HERE near column 1 at moge.pl line 8.
ちなみに、C2A0の文字をクリップボードに入れるには、Macでは
$ perl -E 'say "\xC2\xA0"' | pbcopy
とすればよいです。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment