Hi,
thank you both for your contributions, I've pushed a mixture of both to
Rakudo.
I liked the setting up of $*ARGFILES in Tyler Curtis' patch, but
modifying @*ARGS broke other things (namely if there were no arguments,
@*ARGS would contain '-', which broke tests in
This is my trying to implement $*ARGFILES for Rakudo for this week's
contribution to Perl 6.
class IO::ArgFiles {
has $!filehandle;
has $!filename;
has @!filenames;
method new(@filenames) {
self.bless(*, filenames = @filenames || '-');
}
method get