in reply to Shell v Perl, here-doc as stdin
You can do the same 'here document' style thing in perl...
print <<"EOF"; EOF # to pass the here document as stdin to some system # command you could do this: open(CMD,"| command"); print CMD <<"END"; stuff.... END close(CMD);
| We're not surrounded, we're in a target-rich environment! |
|---|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Shell v Perl
by Improv (Pilgrim) on Apr 10, 2003 at 16:57 UTC | |
by Aristotle (Chancellor) on Apr 13, 2003 at 17:08 UTC |