in reply to Re^4: How to put email addresses in a variable and send mails via mailx command
in thread How to put email addresses in a variable and send mails via mailx command

How so? Can you please give an example?

Because they both invoke the shell?

See https://metacpan.org/pod/perlipc#Safe-Pipe-Opens

  • Comment on Re^5: How to put email addresses in a variable and send mails via mailx command

Replies are listed 'Best First'.
Re^6: How to put email addresses in a variable and send mails via mailx command
by Anonymous Monk on Dec 24, 2015 at 22:54 UTC
    See also open which gives an example as  open(FOO, "|cat -n | expand -4 | lpr")

    perl isn't interpreting all those pipes, just the first one, the rest are given to the shell