develooper Front page | perl.perl5.porters | Postings from January 2004

Patch for Shell.pm

Thread Next
From:
Manuel Valente
Date:
January 29, 2004 04:37
Subject:
Patch for Shell.pm
Message ID:
4016AB72.1080503@idealx.com

Nick,

I'd like to submit the small attached patch to Shell.pm.

If $Shell::capture_stderr is set to -1, the module will discard the
STDERR of the process.

This is useful for instance for:

#!/usr/bin/perl
use Shell qw(which);

$Shell::capture_stderr = -1;

unless (which('command'))
{
	do_something();
}

Regards,


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About