Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Passing user input to a shell command

by jdporter (Canon)
on May 20, 2007 at 18:57 UTC ( #616471=note: print w/replies, xml ) Need Help??


in reply to Re^2: Passing user input to a shell command
in thread Passing user input to a shell command

Did you try this?

print "$_\n" for qw "perl /Users/james/perlstuff/macc/macc1 $file";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://616471]
help
Chatterbox?
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?
[james28909]: i have tried with && and and and have tried to rearrange the functions as well to no avail

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2018-05-20 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?