Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

learningperl6.com has content up that is horribly out of date; contact brian d foy #2

Closed
timo opened this issue Nov 29, 2015 · 8 comments

Comments

@timo
Copy link
Member

timo commented Nov 29, 2015

The following is the first hit on google (after a dumb Ad) for "perl6 file handles":

http://www.learningperl6.com/Chapters/11.filehandles.html

This is Very Bad.

Can someone please contact Brian D. Foy about this? I've tried to reach out over twitter, but got no answer yet. Perhaps he isn't actively monitoring mentions or something?

@diakopter
Copy link

@briandfoy mention bump

@diakopter
Copy link

@timo perhaps explain explicitly why it is bad?

@zoffixznet
Copy link

I'd imagine because it's horribly out of date so anyone googling for the aforementioned topic will receive incorrect information :)

@timo
Copy link
Member Author

timo commented Nov 29, 2015

here's a few examples:

$*ARGS    command line files
$*ARGVOUT    output for in place editing

my $fh = open $filename, $mode;
close $output;

my $append = open $destination, :a 
    err die "Could not append to $file: $!";

my $first_line = =$input;
my @array = =$input;
say $input.reverse.join('');

$line =~ s/\b([a-z])([a-z]+)([a-z])\b/$1 ~  ~ $2/

for $*ARGS {
    say "$*ARG: $_";
}

for =$=DATA {
    say if $_ % 2
}

for =$handle :prompt('$ ') { say $_ + 1 }

Curiously, the diamond operator is still around, but only as a sentimental stand-in for the old ARGV. We still read it by making it an iterator by adding the = to it:
for =<> { ... } 

All of these things i've pasted here are no longer valid.

@timo
Copy link
Member Author

timo commented Nov 29, 2015

I don't know what other files are available in there. it's probably just a matter of googling with site:learningperl6.com. but i'm leaving the comp for multiple hours now, so won't check it myself.

@MadcapJake
Copy link

Check out the root page for learningperl6: http://www.learningperl6.com/
Everything should be redirecting there.

@briandfoy
Copy link

David Adler sent me an email and I'll take care of this.

If you see other stuff from me that you think I need to update, just email me. Twitter is good for sending a message to the entire world, almost none of whom care about the message. Those things are easily lost in the noise. :)

@briandfoy
Copy link

Someone can close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants