# Damian Conway wrote:
# @out = sort <~ map {...} <~ grep {...} <~ @a;
#
# Or, under a special rule for variables on the LHS:
#
# @out <~ sort <~ map {...} <~ grep {...} <~ @a;
Hello,
Can one see it as a shell redirection/pipe? This may sound funny,
but is the following ok?
@b <~ @a ~> @c; # @c = @b = @a;
(@b <~ @a) ~> @c; # same order i guess
so one can also:
@keep <~ grep /good/ <~ @list ~> grep /bad!/ ~> @throw;
is this if valid too?
@b ~> @a <~ @c; # push @a, @b, @c;
or: @b, @c ~> push @a;
qw/hello world/ ~> print
I guess it modifies $_
print "$_ \t %stat{$_} \n" <~ grep /^[Aa]/ <~ keys %stat
print "$_ \t %stat{$_} \n" for grep /^[Aa]/, keys %stat
Could we get pairs (or more), and also something like a step, for
example to only take one array elements every two?
Have a nice day,
Frederic