in reply to Re: Something strange in the world or Regexes
in thread Something strange in the world or Regexes
Interesting observation (to me at least):
The single line of binmode stdin :encoding(X) does extend \s for both X = LATIN1 and UTF8 to include the non-breakable space. Without it, regardless of LANG and LC_* variables set in the shell, you've the old semantics for \s. Not (yet?) mentioned in perldoc -f binmode, but OTOH it mentions a nice way to flush STDIN.
Looks like binmode and PerlIO got way more interesting in the meantime :).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Something strange in the world or Regexes
by ikegami (Patriarch) on Sep 30, 2009 at 17:30 UTC | |
by jakobi (Pilgrim) on Sep 30, 2009 at 17:54 UTC | |
by ikegami (Patriarch) on Sep 30, 2009 at 18:14 UTC |