pat_mc has asked for the wisdom of the Perl Monks concerning the following question:
When I print the file in the console, all characters appear separated by a strange extra whitespace. I believe that as a result of this, the regexes don't match.#! /usr/bin/perl -w use strict; use locale; use utf8; while ( <> ) { if ( /\/\/ / ) { # Apply long list of regexe-based substitutions print; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text File Encoding under Windows
by almut (Canon) on Mar 17, 2010 at 17:16 UTC | |
by pat_mc (Pilgrim) on Mar 18, 2010 at 08:33 UTC | |
by almut (Canon) on Mar 18, 2010 at 09:35 UTC | |
by pat_mc (Pilgrim) on Mar 18, 2010 at 14:49 UTC | |
|
Re: Text File Encoding under Windows
by se@n (Initiate) on Mar 21, 2010 at 00:30 UTC |