Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: checking for piped input data

by jwkrahn (Abbot)
on May 02, 2023 at 21:34 UTC ( [id://11151959]=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11151959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-26 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found