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.