in reply to Re: Print to specific line
in thread Print to specific line

Don't think this would work as he wants if the data are as follows:

__DATA__ foo bar 3 goo 1 hoo boo boo 5 yeah 7

Replies are listed 'Best First'.
Re^3: Print to specific line
by toolic (Bishop) on Jun 23, 2015 at 18:23 UTC
    It works for me (output):
    goo 1 foo bar 3 hoo boo boo 5 yeah 7

      Hi Toolic,

      Sure don't want to be argumentative, or nitpick, but the OP said in his spec that the strings had to be printed at the line number of the text file that corresponded to the number in the input.

        Yeah well it works for me, Mr. Pedantic.
Re^3: Print to specific line
by GotToBTru (Prior) on Jun 23, 2015 at 18:49 UTC

    In what way will it not work?

    Dum Spiro Spero

      Because it doesn't account for non-sequential numbers and therefore doesn't meet the spec.

        Okay, I missed the fact that the lines needed not just be sorted, but there might be blank lines required. That is not precluded by the very sparse spec. It might have been clearer if you had provided what the output file should have looked like.

        Dum Spiro Spero