Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$. in regexp accepted by Rakudo but not by STD #2111

Closed
p6rt opened this issue Aug 31, 2010 · 6 comments
Closed

$. in regexp accepted by Rakudo but not by STD #2111

p6rt opened this issue Aug 31, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 31, 2010

Migrated from rt.perl.org#77550 (status was 'rejected')

Searchable as RT77550$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2010

From @bbkr

[12​:02] <bbkr> rakudo​: / $. / # another one not accepted by STD
[12​:02] <p6eval> rakudo 6ccdcd​: ( no output )

[12​:02] <bbkr> std​: / $. / # another one not accepted by STD
[12​:02] <p6eval> std 32120​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0mâ�¤Unsupported
use of $. variable; in Perl 6 please use the filehandle's .line method
at /tmp/qiax0mJToC line 1​:â�¤------> �[32m/ $.�[33mâ���[31m / # another one not
accepted by STD�[0mâ�¤Parse failedâ�¤FAILED 00​:02 116mâ�¤Â»

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

From @coke

On Tue Aug 31 03​:04​:46 2010, pawel.pabian@​implix.com wrote​:

[12​:02] <bbkr> rakudo​: / $. / # another one not accepted by STD
[12​:02] <p6eval> rakudo 6ccdcd​: ( no output )

[12​:02] <bbkr> std​: / $. / # another one not accepted by STD
[12​:02] <p6eval> std 32120​:
OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m�Unsupported
use of $. variable; in Perl 6 please use the filehandle's .line method
at /tmp/qiax0mJToC line 1​:â�¤------> �[32m/ $.�[33mâ���[31m / # another
one not
accepted by STD�[0mâ�¤Parse failedâ�¤FAILED 00​:02 116mâ�¤Â»

Behavior changed​:

08​:35 [Coke] m​: / $. /
08​:35 GLRelia rakudo-moar 1a2b58​: OUTPUT«Method 'match' not found for invocant of class 'Any'â�¤ in block <unit> at /tmp/TFShklg1xA​:1â�¤â�¤Â»
08​:35 camelia rakudo-moar 5fb81f​: OUTPUT«Method 'match' not found for invocant of class 'Any'â�¤ in block <unit> at /tmp/d3k6Y2ajJ4​:1â�¤â�¤Â»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

From @coke

On Sat Aug 29 02​:21​:26 2015, coke wrote​:

On Tue Aug 31 03​:04​:46 2010, pawel.pabian@​implix.com wrote​:

[12​:02] <bbkr> rakudo​: / $. / # another one not accepted by STD
[12​:02] <p6eval> rakudo 6ccdcd​: ( no output )

[12​:02] <bbkr> std​: / $. / # another one not accepted by STD
[12​:02] <p6eval> std 32120​:
OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m�Unsupported
use of $. variable; in Perl 6 please use the filehandle's .line
method
at /tmp/qiax0mJToC line 1​:â�¤------> �[32m/ $.�[33mâ���[31m / # another
one not
accepted by STD�[0mâ�¤Parse failedâ�¤FAILED 00​:02 116mâ�¤Â»

Behavior changed​:

08​:35 [Coke] m​: / $. /
08​:35 GLRelia rakudo-moar 1a2b58​: OUTPUT«Method 'match' not found
for invocant of class 'Any'â�¤ in block <unit> at /tmp/TFShklg1xA​:1â�¤â�¤Â»
08​:35 camelia rakudo-moar 5fb81f​: OUTPUT«Method 'match' not found
for invocant of class 'Any'â�¤ in block <unit> at /tmp/d3k6Y2ajJ4​:1â�¤â�¤Â»

More data​:

05​:23 < FROGGS> m​: $_ = ""; / $. /
05​:23 < GLRelia> rakudo-moar 766e70​: ( no output )
05​:23 <+camelia> rakudo-moar 5fb81f​: ( no output )

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 14, 2016

From @TimToady

The chance of someone using $. inside a regex and meaning what it means in Perl 5 is minimal. Best to just leave this as a "can never match".

@p6rt
Copy link
Author

p6rt commented Aug 14, 2016

@TimToady - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Aug 14, 2016
@p6rt p6rt added the at_larry label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant