> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/i/input/output_for_pairs_of_numbers.md).

# Output for pairs of numbers

```perl
for ^get() { say [+] get.words }
```

This does more than the task asks. It will sum as many numbers as you care to put on each line, and the numbers need not be integers, but may also be a mix of rational, floating-point, or complex numbers. More subtly, `get` can read from a file specified as a command-line argument, but defaults to taking STDIN if no filename is specified.
