develooper Front page | perl.perl6.users | Postings from August 2018

is there a limit to a s/ ?

Thread Next
From:
ToddAndMargo
Date:
August 11, 2018 03:16
Subject:
is there a limit to a s/ ?
Message ID:
44f1d1b8-3fc7-fa05-f7a7-1e4017ef79f5@zoho.com
Hi All,

I was thinking of doing a

$ p6 'my $x="a\nb\nc\nd\n"; say "$x\n"; $x ~~ s/ .*?c /c/; say "$x";'
a
b
c
d


c
d


Except the real deal will be across 1460 lines.  Am I pushing the
limits?

There are other ways of doing what I want.


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About