App-sh2p
view release on metacpan or search on metacpan
lib/App/sh2p/Parser.pm view on Meta::CPAN
package App::sh2p::Parser;
use strict;
use warnings;
use App::sh2p::Compound;
use App::sh2p::Trap;
use App::sh2p::Utils;
sub convert(\@\@);
our $VERSION = '0.06';
our $DEBUG = 0;
###########################################################
my %icompound =
( 'case' => \&App::sh2p::Compound::Handle_case,
'do' => \&App::sh2p::Compound::Handle_do,
'done' => \&App::sh2p::Compound::Handle_done,
lib/App/sh2p/Utils.pm view on Meta::CPAN
# Do not set environment variables through here - January 2009
if (substr($g_special_vars{$name},0,4) ne '$ENV') {
$g_special_vars{$name} = $value;
}
return $value;
}
############################################################################
sub no_semi_colon() {
$g_use_semi_colon = 0;
}
sub reset_semi_colon() {
$g_use_semi_colon = 1;
}
sub query_semi_colon() {
return $g_use_semi_colon;
}
############################################################################
sub set_shell {
my $shell = shift;
$g_shell_in_use = $shell;
#print STDERR "Shell set to <$shell>\n";
}
( run in 1.075 second using v1.01-cache-2.11-cpan-65fba6d93b7 )