Perl6-Pugs
view release on metacpan or search on metacpan
examples/tutorial_gen/tut.pl view on Meta::CPAN
if ( @*ARGS[0] ) {
$conf_fp = @*ARGS[0];
$path = splitpath( $conf_fp )[1];
} else {
$conf_fp = "$path/conf.pl";
}
say ~$path if $dg;
# todo_ require problem
#my $conf_raw = require $conf_fp || die "Conf file '$conf_fp' not loaded;";
#my %conf = hash( $conf_raw );
my %conf = {
index => [
# { src => './tut_src/hello-world.pl', dest_dir => 'base', },
# { src => './tut_src/hello-world-ad.pl', dest_dir => 'base', },
# { src => './tut_src/', dest_dir => 'tut', },
<hello-world.pl hello-world-ad.pl>
],
util/PaP6-testing/test_loop.pl view on Meta::CPAN
ReadMode('cbreak');
my $ver = 5;
print "Working path: '" . $RealBin . "'\n" if $ver > 3;
print "Loading config file.\n" if $ver > 1;
my $fp_conf = catfile( $RealBin, 'conf.pl' );
print "Config file path: '" . $fp_conf . "'\n" if $ver > 1;
my $conf = require $fp_conf;
dump( $conf ) if $ver > 4;
print "Validating config.\n" if $ver > 1;
foreach my $c_num ( 0..$#$conf ) {
my $ck = $conf->[$c_num];
print "num: $c_num\n" if $ver > 3;
# global keys
foreach my $mck ( qw(name repository commands) ) {
util/PaP6-testing/test_loop.pl view on Meta::CPAN
'after_temp_copied_done' => 0,
'cmd' => default_cmd_state(),
};
}
my $fp_state = catfile( $RealBin, 'state.pl' );
print "Runstate config file path: '" . $fp_state . "'\n" if $ver > 1;
my $state;
if ( -e $fp_state ) {
$state = require $fp_state;
} else {
$state = default_state();
}
my $conf_last = $#$conf;
my $conf_first = ( exists $state->{ck_num} ) ? $state->{ck_num} : 0;
my $first_time = 1;
while ( 1 ) {
( run in 0.236 second using v1.01-cache-2.11-cpan-0d8aa00de5b )