[plug] Perl $? equivalent

Jay Turner jturner at bsis.com.au
Fri Mar 12 14:28:55 WST 2004


Thanks for that also.

When looking a number of months ago the best way to send a file via sendmail
(qmail actually with sendmail alias, but i digress), that was the only
example I found and have re-used it ever since.

Have updated to use your more efficient method.

Thanks

> -----Original Message-----
> From: plug-bounces at plug.linux.org.au
> [mailto:plug-bounces at plug.linux.org.au]On Behalf Of Cameron Patrick
> Sent: Friday, 12 March 2004 2:12 PM
> To: plug at plug.linux.org.au
> Subject: Re: [plug] Perl $? equivalent
>
>
> Jay Turner wrote:
>
> | 'system' command and have replaced my `cat..` call with system "cat"..
> [...]
> | $return=`cat mail | sendmail -t`;
>
> BTW cat is superfluous in the above, you might as well use something
> like 'sendmail -t < mail' instead.
>
> Cameron.
>
> _______________________________________________
> PLUG discussion list: plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>
>





More information about the plug mailing list