view release on metacpan or search on metacpan
script/_genpw-base64 view on Meta::CPAN
# my $err = $@;
# return [$type, $clsets] unless $err;
# die "Can't check whether $type is a builtin Sah type: $err"
# unless $err =~ /\ACan't locate/;
#
# my $schmod = "Sah::Schema::$type";
# (my $schmod_pm = "$schmod.pm") =~ s!::!/!g;
# eval { require $schmod_pm; 1 };
# die "Not a known built-in Sah type '$type' (can't locate ".
# "Data::Sah::Type::$type) and not a known schema name '$type' ($@)"
# if $@;
# no strict 'refs';
# my $sch2 = ${"$schmod\::schema"};
# die "BUG: Schema module $schmod doesn't contain \$schema" unless $sch2;
# unshift @$clsets, $sch2->[1];
# _resolve($opts, $sch2->[0], $clsets, $seen);
#}
#
#sub resolve_schema {
view all matches for this distribution
view release on metacpan or search on metacpan
script/_genpw-id view on Meta::CPAN
# return [$type, $clsets] unless $err;
# die "Can't check whether $type is a builtin Sah type: $err"
# unless $err =~ /\ACan't locate/;
#
# # not a type, try a schema under Sah::Schema
# my $schmod = "Sah::Schema::$type";
# (my $schmod_pm = "$schmod.pm") =~ s!::!/!g;
# eval { require $schmod_pm; 1 };
# die "Not a known built-in Sah type '$type' (can't locate ".
# "Data::Sah::Type::$type) and not a known schema name '$type' ($@)"
# if $@;
# no strict 'refs';
# my $sch2 = ${"$schmod\::schema"};
# die "BUG: Schema module $schmod doesn't contain \$schema" unless $sch2;
# unshift @$clsets, $sch2->[1];
# _resolve($opts, $sch2->[0], $clsets, $seen);
#}
#
#sub resolve_schema {
view all matches for this distribution
view release on metacpan or search on metacpan
script/_genpw-ind view on Meta::CPAN
# return [$type, $clsets] unless $err;
# die "Can't check whether $type is a builtin Sah type: $err"
# unless $err =~ /\ACan't locate/;
#
# # not a type, try a schema under Sah::Schema
# my $schmod = "Sah::Schema::$type";
# (my $schmod_pm = "$schmod.pm") =~ s!::!/!g;
# eval { require $schmod_pm; 1 };
# die "Not a known built-in Sah type '$type' (can't locate ".
# "Data::Sah::Type::$type) and not a known schema name '$type' ($@)"
# if $@;
# no strict 'refs';
# my $sch2 = ${"$schmod\::schema"};
# die "BUG: Schema module $schmod doesn't contain \$schema" unless $sch2;
# unshift @$clsets, $sch2->[1];
# _resolve($opts, $sch2->[0], $clsets, $seen);
#}
#
#sub resolve_schema {
view all matches for this distribution
view release on metacpan or search on metacpan
get_flash_videos view on Meta::CPAN
$browser->mirror($url, $new_file);
if($browser->response->is_success && -f $new_file) {
rename $0, "$0.old" or die "Unable to rename $0 to $0.old: $!";
rename $new_file, $0 or die "Unable to rename $new_file to $0: $!";
chmod 0755, $0;
info "New version installed as $0";
info "(previous version backed up to $0.old).";
info $info;
} else {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ggdrv/crecord.pm view on Meta::CPAN
EOB1
my $cmd = << "EOB1" ;
GGDRV_API=$GFILE
touch \$GGDRV_API
chmod 600 \$GGDRV_API # ä»ã®ã¦ã¼ã¶ã¼ã«æ¸ãè¾¼ãã ãã¡ã¤ã«ã¯èªããªãããã«ãããã¼ããã·ã§ã³ã®è¨å®ãå¿
è¦ã ã£ãã¨æãããã
cat > \$GGDRV_API << EOF
##
## ãã®ãã¡ã¤ã«ã¯ããã¼ã¨ããªã¥ã¼ã®å½¢å¼ã§æ
å ±ãèªã¿åãããã°ã©ã ã«ä½¿ãããã
## * ãã¼ã¨ããªã¥ã¼ã®é㯠åè§ç©ºç½ãã¿ãæåãã³ãã³(:)ãã¤ã³ã¼ã«æå(=)ã¨ãã®çµåãã®ã¿ã許容ãããã
## * ããªã¥ã¼ã®æååã¯ãæ¹è¡æåã®ç´åã¾ã§ã§ãããã¨ãæ³å®ãã¦ããã
view all matches for this distribution
view release on metacpan or search on metacpan
t/perl-build.t view on Meta::CPAN
my $app = App::git::ship::perl->new;
$app->start('Perl/Build.pm', 0);
mkdir 'bin';
touch(File::Spec->catfile("bin", $_)) for qw(e-x-e foo);
chmod 0755, File::Spec->catfile(qw(bin e-x-e));
my $main_module_path = $app->config('main_module_path');
$app->_render_makefile_pl;
t::Util->test_file(
'Makefile.PL',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/githook/perltidy/install.pm view on Meta::CPAN
if [ "\$NO_GITHOOK_PERLTIDY" != "1" ]; then
PERL5LIB="" $gp pre-commit
fi
}
);
chmod 0755, $pre_commit || warn "chmod: $!";
print $pre_commit;
print " (forced)" if $self->force;
print " (absolute)" if $self->absolute;
print "\n";
}
view all matches for this distribution
view release on metacpan or search on metacpan
# }
# die "Cannot resolve Sah schema: can't check whether $type is a builtin Sah type: $err"
# unless $err =~ /\ACan't locate/;
#
# # not a type, try a schema under Sah::Schema
# my $schmod = "Sah::Schema::$type";
# (my $schmod_pm = "$schmod.pm") =~ s!::!/!g;
# eval { require $schmod_pm; 1 };
# die "Cannot resolve Sah schema: not a known built-in Sah type '$type' (can't locate ".
# "Data::Sah::Type::$type) and not a known schema name '$type' ($@)"
# if $@;
# no strict 'refs';
# my $sch2 = ${"$schmod\::schema"};
# die "Cannot resolve Sah schema: BUG: Schema module $schmod doesn't contain \$schema"
# unless $sch2;
# $res->{type} = $sch2->[0];
# unshift @{ $res->{clsets_after_type} }, $sch2->[1];
# _resolve($opts, $res);
#}
view all matches for this distribution
view release on metacpan or search on metacpan
script/indodax view on Meta::CPAN
First, create an account at L<https://bitcoin.co.id>, create the trade API key
then insert the API key and secret key in F<~/.config/indodax.conf>. Since the
configuration file contains the API secret key, please make sure that the
permission of the file is set so that unauthorized users cannot read it (e.g.
chmod it to 0600).
# In ~/.config/indodax.conf
key = ...
secret = ...
view all matches for this distribution
view release on metacpan or search on metacpan
if (-e $file) {
mkpath(dirname("$tardir/$file"), 0, 0777);
print STDERR "copy $file $tardir/$file\n";
copy($file, "$tardir/$file");
if ($file =~ m/ (?: Build\.PL | Makefile\.PL ) \z/oxmsi) {
chmod(0664, "$tardir/$file");
}
elsif ($file =~ m/\. (?: pl | bat | exe | com ) \z/oxmsi) {
chmod(0775, "$tardir/$file");
}
elsif ($file =~ m{^bin/}oxmsi) {
chmod(0775, "$tardir/$file");
}
else {
chmod(0664, "$tardir/$file");
}
}
}
system(qq{tar -cvf $tardir.tar $tardir});
system(qq{gzip $tardir.tar});
else {
open(FH_TARBAT, '>ptar') || die "Can't open file: ptar\n";
print FH_TARBAT '#!', &which($^X), "\n";
print FH_TARBAT $ptar;
close FH_TARBAT;
chmod 0755, 'ptar';
}
}
# unzip and untar *.tar.gz
elsif ($target =~ /^xzvf$/) {
else {
open(FH_WGETBAT, '>pwget') || die "Can't open file: pwget\n";
print FH_WGETBAT '#!', &which($^X), "\n";
print FH_WGETBAT $pwget;
close FH_WGETBAT;
chmod 0755, 'pwget';
}
}
else {
warn "unknown target: $target.\n";
}
view all matches for this distribution
view release on metacpan or search on metacpan
FROM runtime-base AS runtime-root
COPY docker/karr-entrypoint.sh /usr/local/bin/karr-entrypoint.sh
RUN chmod +x /usr/local/bin/karr-entrypoint.sh
ENTRYPOINT ["karr-entrypoint.sh"]
FROM runtime-base AS runtime-user
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/local/lib/helper.pm view on Meta::CPAN
|| $self->error("Can't open $filename", $!);
print $fh $text;
close($fh);
chmod oct($permissions), $filename;
return $filename;
}
sub _find_or_create_lib_bindir_from {
my ($self, $target) = @_;
lib/App/local/lib/helper.pm view on Meta::CPAN
This is the name of the helper utility script. It defaults to 'localenv'.
=item helper_permissions
These are the permissions the the helper utility script is set to. By default
we set the equivilent of 'chmod 755 [HELPER SCRIPT]'
=back
=head1 HELPERS
view all matches for this distribution
view release on metacpan or search on metacpan
author/fatpack.pl view on Meta::CPAN
my $fatout = $in->basename;
$fatout = path("$outdir/$fatout")->spew_utf8($fatstr);
# S_IXOTH (00001) execute/search by others
$fatout->chmod(
S_IRUSR | S_IRGRP | S_IROTH | S_IXUSR | S_IXGRP | S_IXOTH );
success("Written to: $fatout");
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
script/_metasyn view on Meta::CPAN
# return [$type, $clsets] unless $err;
# die "Can't check whether $type is a builtin Sah type: $err"
# unless $err =~ /\ACan't locate/;
#
# # not a type, try a schema under Sah::Schema
# my $schmod = "Sah::Schema::$type";
# (my $schmod_pm = "$schmod.pm") =~ s!::!/!g;
# eval { require $schmod_pm; 1 };
# die "Not a known built-in Sah type '$type' (can't locate ".
# "Data::Sah::Type::$type) and not a known schema name '$type' ($@)"
# if $@;
# no strict 'refs';
# my $sch2 = ${"$schmod\::schema"};
# die "BUG: Schema module $schmod doesn't contain \$schema" unless $sch2;
# unshift @$clsets, $sch2->[1];
# _resolve($opts, $sch2->[0], $clsets, $seen);
#}
#
#sub resolve_schema {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/migrate.pm view on Meta::CPAN
}
else {
my $cmd = $step->{cmd};
if ($cmd =~ /\A#!/ms) {
$cmd = _data2arg($cmd);
chmod 0700, $cmd or croak "chmod($cmd): $!"; ## no critic (ProhibitMagicNumbers)
}
system($cmd, @{ $step->{args} }) == 0 or die "'$step->{type}' failed: $cmd @{ $step->{args} }\n";
print "\n";
}
1;
lib/App/migrate.pm view on Meta::CPAN
VERSION 0.2.0
# To upgrade from 0.2.0 to 1.0.0 we need to run several commands,
# and after downgrading we need to kill some background service.
before_upgrade
patch <0.2.0.patch >/dev/null
chmod +x some_daemon
downgrade
patch -R <0.2.0.patch >/dev/null
upgrade
./some_daemon &
after_downgrade
view all matches for this distribution
view release on metacpan or search on metacpan
mimi.fatpack view on Meta::CPAN
$fatpacked{"ExtUtils/Helpers.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'EXTUTILS_HELPERS';
package ExtUtils::Helpers;$ExtUtils::Helpers::VERSION='0.03';use strict;use warnings FATAL=>'all';use Exporter 5.57 'import';use Config;use File::Basename qw/basename/;use File::Spec::Functions qw/splitpath canonpath abs2rel splitdir/;use Text::Par...
EXTUTILS_HELPERS
$fatpacked{"ExtUtils/Helpers/Unix.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'EXTUTILS_HELPERS_UNIX';
package ExtUtils::Helpers::Unix;$ExtUtils::Helpers::Unix::VERSION='0.03';use strict;use warnings FATAL=>'all';use Exporter 5.57 'import';our@EXPORT=qw/make_executable detildefy/;use Carp qw/croak/;use Config;my$layer=$] >= 5.008001 ? ":raw" : "";su...
EXTUTILS_HELPERS_UNIX
$fatpacked{"ExtUtils/Helpers/VMS.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'EXTUTILS_HELPERS_VMS';
package ExtUtils::Helpers::VMS;$ExtUtils::Helpers::VMS::VERSION='0.03';use strict;use warnings FATAL=>'all';use Exporter 5.57 'import';our@EXPORT=qw/make_executable detildefy/;use File::Copy qw/copy/;sub make_executable {my$filename=shift;my$batchn...
EXTUTILS_HELPERS_VMS
mimi.fatpack view on Meta::CPAN
$fatpacked{"Module/Build.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'MODULE_BUILD';
package Module::Build;use if $] >= 5.019,'deprecate';use 5.006;use strict;use warnings;use File::Spec ();use File::Path ();use File::Basename ();use Perl::OSType ();use Module::Build::Base;our@ISA=qw(Module::Build::Base);our$VERSION='0.03';$VERSION...
MODULE_BUILD
$fatpacked{"Module/Build/Base.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'MODULE_BUILD_BASE';
package Module::Build::Base;use 5.006;use strict;use warnings;our$VERSION='0.03';$VERSION=eval$VERSION;use Carp;use Cwd ();use File::Copy ();use File::Find ();use File::Path ();use File::Basename ();use File::Spec 0.82 ();use File::Compare ();use M...
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
EOF
mimi.fatpack view on Meta::CPAN
$fatpacked{"Module/Build/Config.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'MODULE_BUILD_CONFIG';
package Module::Build::Config;use strict;use warnings;our$VERSION='0.03';$VERSION=eval$VERSION;use Config;sub new {my ($pack,%args)=@_;return bless {stack=>{},values=>$args{values}|| {},},$pack}sub get {my ($self,$key)=@_;return$self->{values}{$key...
MODULE_BUILD_CONFIG
$fatpacked{"Module/Build/ConfigData.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'MODULE_BUILD_CONFIGDATA';
package Module::Build::ConfigData;use strict;my$arrayref=eval do {local $/;<DATA>}or die "Couldn't load ConfigData data: $@";close DATA;my ($config,$features,$auto_features)=@$arrayref;sub config {$config->{$_[1]}}sub set_config {$config->{$_[1]}=$...
{},
{},
{
'HTML_support' => {
'description' => 'Create HTML documentation',
mimi.fatpack view on Meta::CPAN
# Can't use Module::Build::Dumper here because M::B is only a
# build-time prereq of this module
require Data::Dumper;
my $mode_orig = (stat $me)[2] & 07777;
chmod($mode_orig | 0222, $me); # Make it writeable
open(my $fh, '+<', $me) or die "Can't rewrite $me: $!";
seek($fh, 0, 0);
while (<$fh>) {
last if /^__DATA__$/;
}
mimi.fatpack view on Meta::CPAN
. Data::Dumper->new([$data],['x'])->Purity(1)->Dump()
. '$x; }' );
truncate($fh, tell($fh));
close $fh;
chmod($mode_orig, $me)
or warn "Couldn't restore permissions on $me: $!";
}
sub feature {
my ($package, $key) = @_;
mimi.fatpack view on Meta::CPAN
$fatpacked{"Module/Build/Platform/Default.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'MODULE_BUILD_PLATFORM_DEFAULT';
package Module::Build::Platform::Default;use strict;use warnings;our$VERSION='0.03';$VERSION=eval$VERSION;use Module::Build::Base;our@ISA=qw(Module::Build::Base);1;
MODULE_BUILD_PLATFORM_DEFAULT
$fatpacked{"Module/Build/Platform/MacOS.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'MODULE_BUILD_PLATFORM_MACOS';
package Module::Build::Platform::MacOS;use strict;use warnings;our$VERSION='0.03';$VERSION=eval$VERSION;use Module::Build::Base;our@ISA=qw(Module::Build::Base);use ExtUtils::Install;sub have_forkpipe {0}sub new {my$class=shift;my$self=$class->SUPER...
MODULE_BUILD_PLATFORM_MACOS
$fatpacked{"Module/Build/Platform/Unix.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'MODULE_BUILD_PLATFORM_UNIX';
package Module::Build::Platform::Unix;use strict;use warnings;our$VERSION='0.03';$VERSION=eval$VERSION;use Module::Build::Base;our@ISA=qw(Module::Build::Base);sub is_executable {my ($self,$file)=@_;return +(stat$file)[2]& 0100}sub _startperl {"#! "...
MODULE_BUILD_PLATFORM_UNIX
view all matches for this distribution
view release on metacpan or search on metacpan
utils/packit view on Meta::CPAN
cpm () {
local exe=packer/bin/cpm
if [ ! -x $exe ]; then
curl -fsSL --compressed https://git.io/cpm -o $exe
chmod +x $exe
fi
unset -f cpm
cpm "$@"
}
utils/packit view on Meta::CPAN
-o $DIR/$EXE $DIR/script/$EXE |& tee pack.log
perl -i.bak -pe 's{/usr/bin/perl}{/usr/bin/env perl}' $DIR/$EXE
rm -f $DIR/$EXE.bak
chmod +x $DIR/$EXE
}
all () {
install
pack
view all matches for this distribution
view release on metacpan or search on metacpan
misc/put_pubkey view on Meta::CPAN
send "echo S\"\"tArToFkEyUpDaTe\r"
expect "StArToFkEyUpDaTe"
send "test -d .ssh || mkdir .ssh\r"
send "chmod 0600 .ssh\r"
send "PUBK='$data'\r"
send "test -f .ssh/authorized_keys && grep -v \"\$PUBK\" .ssh/authorized_keys >/tmp/authorizes_keys\r"
send "echo \"\$PUBK\" >> tmp/authorized_keys\r"
send "mv tmp/authorized_keys .ssh/authorized_keys\r"
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/oaf.pm view on Meta::CPAN
Unless you're on Windows you probably have it (here in 2019).
=head2 Download
curl -o oaf https://raw.githubusercontent.com/sshaw/output-as-format/master/oaf
chmod 555 oaf
=head2 CPAN
cpan App::oaf
view all matches for this distribution
view release on metacpan or search on metacpan
.github/workflows/perl_linux.yml view on Meta::CPAN
steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Install cpm if missing
run: if ! which cpm; then curl -fsSL --compressed https://git.io/cpm > cpm; chmod +x cpm; fi
- name: Install Dependencies
run: PATH=.:$PATH cpm install -g
- name: build
run: perl Build.PL && ./Build build
- name: Run Tests
view all matches for this distribution
view release on metacpan or search on metacpan
bin/org2ical view on Meta::CPAN
sub copy_stat {
my($src, $dest) = @_;
my @stat = ref $src eq 'ARRAY' ? @$src : stat($src);
die "Can't stat $src: $!" if !@stat;
chmod $stat[2], $dest
or warn "Can't chmod $dest to " . sprintf("0%o", $stat[2]) . ": $!";
chown $stat[4], $stat[5], $dest
or do {
my $save_err = $!; # otherwise it's lost in the get... calls
warn "Can't chown $dest to " .
(getpwuid($stat[4]))[0] . "/" .
view all matches for this distribution
view release on metacpan or search on metacpan
} else {
open my $cfile, '>', $config_file or die "Unable to create $config_file: $!\n";
close $cfile;
}
}
chmod 0600, $config_file if (defined $config_file);
}
my ($c, $alias, $url, $key, $user, $passwd, %instances);
my $history_file = catfile($conf_dir, 'history');
my @history;
view all matches for this distribution
view release on metacpan or search on metacpan
script/perlall view on Meta::CPAN
$c->addopts('latest|l');
my $branch = $c->options->{latest} ? 'master' : 'release';
$c->_system("wget","--no-check-certificate","-O","perlall.tmp",
"http://github.com/rurban/App-perlall/raw/$branch/script/perlall");
if (-s "perlall.tmp" > 5000) {
$c->_system("chmod","0755","perlall.tmp");
$c->_system("mv","perlall.tmp",-l $0 ? readlink($0) : $0) or
"$0 updated"
} else {
"wget download from github failed"
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/perlbrew.pm view on Meta::CPAN
close($fh);
copy( $executable, $target );
}
chmod( 0755, $target );
my $path = $target->stringify_with_tilde;
print "perlbrew is installed: $path\n" unless $self->{quiet};
lib/App/perlbrew.pm view on Meta::CPAN
my @preconfigure_commands = ( "cd $dist_extracted_dir", "rm -f config.sh Policy.sh", );
if ((not $self->{"no-patchperl"})
&& (not $looks_like_we_are_installing_cperl)
&& (my $patchperl = maybe_patchperl($self->root))) {
push @preconfigure_commands, 'chmod -R +w .', $patchperl;
}
my $configure_flags = $self->env("PERLBREW_CONFIGURE_FLAGS") || '-de';
my @configure_commands = (
lib/App/perlbrew.pm view on Meta::CPAN
$self->root->bin->mkpath;
open my $OUT, '>', $out or die "cannot open file($out): $!";
print $OUT $body;
close $OUT;
chmod 0755, $out;
print "\n$program_name is installed to\n\n $out\n\n" unless $self->{quiet};
}
sub do_exit_with_error_code {
my ( $self, $code ) = @_;
lib/App/perlbrew.pm view on Meta::CPAN
my $TMPDIR = $ENV{TMPDIR} || "/tmp";
my $TMP_PERLBREW = App::Perlbrew::Path->new( $TMPDIR, "perlbrew" );
http_download( 'https://raw.githubusercontent.com/gugod/App-perlbrew/master/perlbrew', $TMP_PERLBREW );
chmod 0755, $TMP_PERLBREW;
my $new_version = qx($TMP_PERLBREW version);
chomp $new_version;
if ( $new_version =~ /App::perlbrew\/(\d+\.\d+)$/ ) {
$new_version = $1;
}
lib/App/perlbrew.pm view on Meta::CPAN
);
open my $fh, ">", "$output" or die $!;
print $fh $shim;
close $fh;
chmod 0755, $output;
if ( $self->{verbose} ) {
print "The shim $output is made.\n";
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
git/setup.sh view on Meta::CPAN
#!/usr/bin/env bash
chmod +x git/hooks/pre-commit
cd .git/hooks
ln -s ../../git/hooks/pre-commit
view all matches for this distribution
view release on metacpan or search on metacpan
examples/install.sh view on Meta::CPAN
echo "to your $profile file"
echo ""
mkdir -p "$dir"
$get $url > "$dir/perluse"
chmod +x "$dir/perluse"
"$dir/perluse"
view all matches for this distribution
view release on metacpan or search on metacpan
git/setup.sh view on Meta::CPAN
#!/usr/bin/env bash
chmod +x git/hooks/pre-commit
cd .git/hooks
ln -s ../../git/hooks/pre-commit
view all matches for this distribution
view release on metacpan or search on metacpan
t/oddmuse-wiki.pl view on Meta::CPAN
sub IsDir { return -d encode_utf8(shift); }
sub ZeroSize { return -z encode_utf8(shift); }
sub Unlink { return unlink(map { encode_utf8($_) } @_); }
sub Modified { return (stat(encode_utf8(shift)))[9]; }
sub Glob { return map { decode_utf8($_) } bsd_glob(encode_utf8(shift)); }
sub ChangeMod { return chmod(shift, map { encode_utf8($_) } @_); }
sub Rename { return rename(encode_utf8($_[0]), encode_utf8($_[1])); }
sub RemoveDir { return rmdir(encode_utf8(shift)); }
sub ChangeDir { return chdir(encode_utf8(shift)); }
sub CreateDir {
view all matches for this distribution
view release on metacpan or search on metacpan
- run it from where you unpacked it -- as either of
./pl ...
perl pl ...
- copy pl to some directory in your PATH, e.g. ~/bin -- you may need to
chmod a+x pl
You can save some space (and maybe a bit of starting time) by compacting pl:
./pl -rp 'last if /=head1/; s/^(?: |\t+ *)//; $. > 1 ? s/^(?:#.*|\cL)?\n// : s/env //; s/\s+#.*//' pl > DESTINATION/pl
On Windows you have 3 options:
view all matches for this distribution
view release on metacpan or search on metacpan
- run it from where you unpacked it -- as either of
./pltest ...
perl pltest ...
- copy pltest to some directory in your PATH, e.g. ~/bin -- you may need to
chmod a+x pltest
You can save some space (and maybe a bit of starting time) by compacting pltest:
./pltest -rp 'last if /=head1/; s/^(?: |\t+ *)//; $. > 1 ? s/^(?:#.*|\cL)?\n// : s/env //; s/\s+#.*//' pltest > DESTINATION/pltest
On Windows you have 3 options:
view all matches for this distribution