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.words doesn't return unless there is a newline at the end #4687

Closed
p6rt opened this issue Oct 29, 2015 · 5 comments
Closed

$*IN.words doesn't return unless there is a newline at the end #4687

p6rt opened this issue Oct 29, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 29, 2015

Migrated from rt.perl.org#126487 (status was 'resolved')

Searchable as RT126487$

@p6rt
Copy link
Author

p6rt commented Oct 29, 2015

From @b2gills

I tried to test the code I wrote
  http://codegolf.stackexchange.com/a/62097/1147
for
  http://codegolf.stackexchange.com/q/62044/1147
it doesn't appear to do anything unless there is a newline at the end

This doesn't complete unless you add "\n" after the last "Snake"

  perl6 -e'print "cat dog cat dog bird dog Snake snake Snake"' | perl6 -e'say $*IN.words.unique'

You can have whitespace characters after the "\n", but you can't have anything else there.

@p6rt
Copy link
Author

p6rt commented Oct 29, 2015

From @lizmat

Fixed with 3b212a0f717e79b3547ea , tests needed

On 29 Oct 2015, at 15​:40, Brad Gilbert (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Brad Gilbert
# Please include the string​: [perl #​126487]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=126487 >

I tried to test the code I wrote
http://codegolf.stackexchange.com/a/62097/1147
for
http://codegolf.stackexchange.com/q/62044/1147
it doesn't appear to do anything unless there is a newline at the end

This doesn't complete unless you add "\n" after the last "Snake"

perl6 -e'print "cat dog cat dog bird dog Snake snake Snake"' | perl6 -e'say $*IN.words.unique'

You can have whitespace characters after the "\n", but you can't have anything else there.

@p6rt
Copy link
Author

p6rt commented Oct 29, 2015

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

@p6rt
Copy link
Author

p6rt commented Jul 4, 2016

From @zoffixznet

On Thu Oct 29 14​:51​:08 2015, elizabeth wrote​:

Fixed with 3b212a0f717e79b3547ea , tests needed

Thank you. Tests added​: Raku/roast@935dae201c

@p6rt
Copy link
Author

p6rt commented Jul 4, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

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

No branches or pull requests

1 participant