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

=<> doesn't read from $*IN in Rakudo #290

Closed
p6rt opened this issue Sep 2, 2008 · 7 comments
Closed

=<> doesn't read from $*IN in Rakudo #290

p6rt opened this issue Sep 2, 2008 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Sep 2, 2008

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

Searchable as RT58524$

@p6rt
Copy link
Author

p6rt commented Sep 2, 2008

From @masak

r30698​:
./perl6 -e 'say $*IN.readline' # works (i.e. repeats what I write)
OH HAI!
OH HAI!
$ ./perl6 -e 'say =<$*IN>' # doesn't work
0
$ ./perl6 -e 'say =<>' # doesn't work
-1

@p6rt
Copy link
Author

p6rt commented Sep 3, 2008

From @moritz

Carl MXXsak (via RT) wrote​:

# New Ticket Created by "Carl Mäsak"
# Please include the string​: [perl #​58524]
# in the subject line of all future correspondence about this issue.
# <URL​: http://rt.perl.org/rt3/Ticket/Display.html?id=58524 >

r30698​:
./perl6 -e 'say $*IN.readline' # works (i.e. repeats what I write)
OH HAI!
OH HAI!
$ ./perl6 -e 'say =<$*IN>' # doesn't work
0

Shouldn't that be just =$*IN ?

$ ./perl6 -e 'say =<>' # doesn't work
-1

That is used as an example in S04, so it should work.

Cheers,
Moritz

--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/

@p6rt
Copy link
Author

p6rt commented Sep 3, 2008

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

@p6rt
Copy link
Author

p6rt commented Sep 3, 2008

From @masak

Moritz (>), Carl (>>)​:

$ ./perl6 -e 'say =<$*IN>' # doesn't work
0

Shouldn't that be just =$*IN ?

Yes, it should. I claim temporary insanity.

// Carl

@p6rt
Copy link
Author

p6rt commented Apr 30, 2009

From @ronaldxs

Shouldn't that be just =$*IN ?

Times have changed and not anymore.

$ ./perl6 -e 'say =$*IN'
prefix​:<=> has been superseeded by $handle.lines and $handle.get

$*IN.lines seems to work and yes I am hoping someone will fix the
spelling of superseded in src/classes/IO.pir.

$ ./perl6 -e 'say =<>' # doesn't work
-1

That is used as an example in S04, so it should work.

I couldn't find <> as a Perl 6 IO example in S04 at this time. It is
mentioned as a Perl 5 IO example which is translated to the lines
function consistent with the behavior above.

So I am not quite sure what =<> should be doing with list quoting but
it may now be acceptable for it not to do IO.

@p6rt
Copy link
Author

p6rt commented Apr 30, 2009

From @masak

On Thu Apr 30 07​:49​:00 2009, ronaldxs wrote​:

Shouldn't that be just =$*IN ?

Times have changed and not anymore.

Aye, resolving.

$ ./perl6 -e 'say =$*IN'
prefix​:<=> has been superseeded by $handle.lines and $handle.get

$*IN.lines seems to work and yes I am hoping someone will fix the

Fixed. Thank you.

$ ./perl6 -e 'say =<>' # doesn't work
-1

That is used as an example in S04, so it should work.

I couldn't find <> as a Perl 6 IO example in S04 at this time. It is
mentioned as a Perl 5 IO example which is translated to the lines
function consistent with the behavior above.

So I am not quite sure what =<> should be doing with list quoting but
it may now be acceptable for it not to do IO.

Aye.

@p6rt
Copy link
Author

p6rt commented Apr 30, 2009

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

@p6rt p6rt closed this as completed Apr 30, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant