package Filter::sh;
use Filter::Util::Exec ;
use strict ;
use warnings ;
our $VERSION = "1.60" ;
sub import
{
my($self, @args) = @_ ;
unless (@args) {
require Carp;
Carp::croak("Usage: use Filter::sh 'command'");
}
if ($^O eq 'MSWin32') {
Filter::Util::Exec::filter_add ($self, 'cmd', '/c', "@args") ;
}
else {
Filter::Util::Exec::filter_add ($self, 'sh', '-c', "@args") ;
}
}
1 ;
__END__
=head1 NAME
Filter::sh - sh source filter
=head1 SYNOPSIS
use Filter::sh 'command' ;
=head1 DESCRIPTION
This filter pipes the current source file through the program which
corresponds to the C