Re: $/ not always set after a regex match?

[email protected] (Vadim Belman)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
A side effect is a side effect, it's something we cannot generally predict and must not rely upon. Besides, that effect is caused by a regex which is a separate entity on its own.

The primary point is that your sequence objects gets `.sink` method invoked on it because the object itself is, roughly saying, unused.

Best regards,
Vadim Belman

> On Dec 30, 2022, at 4:44 PM, Sean McAfee <[email protected]> wrote:
> 
> On Fri, Dec 30, 2022 at 4:12 PM The Sidhekin <[email protected] <mailto:[email protected]>> wrote:
>> On Fri, Dec 30, 2022 at 8:51 PM Vadim Belman <[email protected] <mailto:[email protected]>> wrote:
>>> It is not "untrue". The sequence you produced goes nowhere. Thus the sink context.
>> 
>>   "Sink context" is true.
>> 
>>   "Useless use" is debatable, at least.
> 
>  It's not useless because there's a side effect: setting $/.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.