user
This task has been flagged for clarification. Code on this page in its current state may be flagged incorrect once this task has been clarified. See this page's Talk page for discussion.

Task

The first line contains the number of lines to follow, followed by that number of lines of text on   STDIN.

Write to   STDOUT   each line of input by passing it to a method as an intermediate step. The code should demonstrate these 3 things.

Sample input with corresponding output

**Input**

```
3
hello
hello world
Pack my Box with 5 dozen liquor jugs 

```

**Output**

```
hello
hello world
Pack my Box with 5 dozen liquor jugs

```

Related tasks

* Input/Output for Pairs of Numbers
* File/Input and Output
assistant
(formerly Perl 6)

Short version:

```
say get for ^get;

```

Verbose version:

```
sub do-stuff ($line) {
    say $line;
}
 
my $n = +get;
for ^$n {
    my $line = get;
    do-stuff $line;
}

```