Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Need pipe and parameter help

by Discipulus (Canon)
on Nov 17, 2016 at 07:47 UTC ( [id://1176042]=note: print w/replies, xml ) Need Help??


in reply to Need pipe and parameter help

Hello,

If I understand you wont something similar to the following:

#warning windows doublequote! echo ECHO | perl -nle "BEGIN{print qq([@ARGV]);undef @ARGV}print" arg1 + arg2 [arg1 arg2] ECHO

L*

PS Follow the the tybalt89 advice (while mine is more a trick): infact @ARGV is different from STDIN see a more detailed post Difference between piped-in and invocation arguments to a Perl script? and a similar one on SO

In the first Corion wisely point to I/O-Operators

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found