in reply to checking for piped input data

I would like to use the table output by "script.pl -y goodbye" as the argument of -x.

I believe this is what you want, but I haven't tested it.

script.pl -x `script.pl -y goodbye`
Naked blocks are fun! -- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re^2: checking for piped input data
by Anonymous Monk on May 02, 2023 at 22:07 UTC
    Right, that would literally be passing the entire table as the argument which is not really intuitive in terms of my script. I thought I could use pipes instead to pass the table, but the underlying script would parse and concatenate the correct column which would then be passed it to the argument of -x. I also want to be able to chain these like all unix commands...