in reply to Re: Perl6: Capturing newline in a string
in thread Perl6: Capturing newline in a string
Here's an example of what I'm trying to do:
For instance, if I start with a Unix file with one line and a unixy \n on a Windows system, then append to the file, I get one line with a nix ending, and one with a windows ending:
10 10^M
This kind of thing happens in both P5 and P6.
I wrote a module that handles this in Perl 5, File::Edit::Portable. To learn about Perl6, I thought I'd port this module over, but the most fundamental aspect of figuring out what style of endings a file has seems to be a bit difficult in Perl6 :)
Perhaps I should have stated what X was instead of asking about Y (XY Problem) :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl6: Capturing newline in a string
by raiph (Deacon) on May 31, 2016 at 16:51 UTC | |
|
Re^3: Perl6: Capturing newline in a string
by msh210 (Monk) on May 31, 2016 at 16:31 UTC | |
by stevieb (Canon) on May 31, 2016 at 16:41 UTC | |
|
Re^3: Perl6: Capturing newline in a string
by Laurent_R (Canon) on May 31, 2016 at 16:00 UTC | |
by stevieb (Canon) on May 31, 2016 at 16:43 UTC | |
by Laurent_R (Canon) on May 31, 2016 at 22:19 UTC | |
by stevieb (Canon) on May 31, 2016 at 23:05 UTC | |
by Anonymous Monk on Jun 01, 2016 at 05:21 UTC | |
|