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! |
|---|
In reply to Re: Shell v Perl
by jasonk
in thread Shell v Perl, here-doc as stdin
by set_uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |