Create a gist now

Instantly share code, notes, and snippets.

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