view release on metacpan or search on metacpan
examples/api_products.pl view on Meta::CPAN
# use warnings;
use v5.10;
use FindBin qw/$Bin/;
use lib "$Bin/../lib";
use Apigee::Edge;
use Data::Dumper;
die "ENV APIGEE_ORG/APIGEE_USR/APIGEE_PWD is required." unless $ENV{APIGEE_ORG} and $ENV{APIGEE_USR} and $ENV{APIGEE_PWD};
my $apigee = Apigee::Edge->new(
org => $ENV{APIGEE_ORG},
usr => $ENV{APIGEE_USR},
view all matches for this distribution
view release on metacpan or search on metacpan
script/_acme-cpanauthors view on Meta::CPAN
#This is the default Log::ger formatter, which: 1) passes the argument as-is if
#there is only a single argument; or, if there are more than one argument, 2)
#treats the arguments like sprintf(), where the first argument is the template
#and the rest are variables to be substituted to the conversions inside the
#template. In the second case, reference arguments will be dumped using
#L<Data::Dmp> or L<Data::Dumper> by default (but the dumper is configurable by
#setting C<$Log::ger::_dumper>; see for example L<Log::ger::UseDataDump> or
#L<Log::ger::UseDataDumpColor>).
#
#The same code is already included in L<Log::ger::Heavy>; this module just
#repackages it so it's more reusable.
script/_acme-cpanauthors view on Meta::CPAN
# $Data::Dmp::OPT_REMOVE_PRAGMAS = 1;
# 1;
# };
# if ($@) {
# no warnings 'once';
# require Data::Dumper;
# $Log::ger::_dumper = sub {
# local $Data::Dumper::Terse = 1;
# local $Data::Dumper::Indent = 0;
# local $Data::Dumper::Useqq = 1;
# local $Data::Dumper::Deparse = 1;
# local $Data::Dumper::Quotekeys = 0;
# local $Data::Dumper::Sortkeys = 1;
# local $Data::Dumper::Trailingcomma = 1;
# local $Data::Dumper::Useqq = 1; # to show "\034", possible bug in Data::Dumper
# Data::Dumper::Dumper($_[0]);
# };
# } else {
# $Log::ger::_dumper = sub { Data::Dmp::dmp($_[0]) };
# }
# }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Acmeman.pm view on Meta::CPAN
use Pod::Man;
use Getopt::Long qw(:config gnu_getopt no_ignore_case);
use POSIX qw(strftime time floor);
use App::Acmeman::Config;
use App::Acmeman::Domain qw(:files);
use Data::Dumper;
use Text::ParseWords;
use App::Acmeman::Log qw(:all :sysexits);
use feature 'state';
our $VERSION = '3.12';
view all matches for this distribution
view release on metacpan or search on metacpan
}
},
"test" : {
"requires" : {
"Capture::Tiny" : "0",
"Data::Dumper" : "0",
"Errno" : "0",
"File::Find" : "0",
"File::Glob" : "0",
"File::Temp" : "0",
"JSON::PP" : "0",
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Alice/Config.pm view on Meta::CPAN
package App::Alice::Config;
use FindBin;
use Data::Dumper;
use File::ShareDir qw/dist_dir/;
use Getopt::Long;
use Any::Moose;
has assetdir => (
lib/App/Alice/Config.pm view on Meta::CPAN
my ($self, $data) = @_;
my $config = $data || $self->serialized;
mkdir $self->path if !-d $self->path;
open my $fh, ">", $self->fullpath;
{
local $Data::Dumper::Terse = 1;
local $Data::Dumper::Indent = 1;
print $fh Dumper($config)
or warn "Can not write config file: $!\n";
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MojoX/Aliyun.pm view on Meta::CPAN
AccessKeyId => $self->access_key,
$self->region_id ? (RegionId => $self->region_id) : (),
$params ? %$params : (),
);
# say Dumper(\%auth_params); use Data::Dumper;
# Thanks to https://github.com/lemontv/AliyunPerlLib/blob/master/Aliyun/Auth.pm
my %dumb = %auth_params; $dumb{Timestamp} = uri_escape($dumb{Timestamp});
my @tmps = map { join('=', $_, $dumb{$_}) } sort keys(%dumb);
my $StringToSign = join("&", @tmps);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/AltSQL.pm view on Meta::CPAN
=cut
use Moose;
use Getopt::Long qw(GetOptionsFromArray);
use Params::Validate;
use Data::Dumper;
use Config::Any;
use Hash::Union qw(union);
our $VERSION = 0.05;
our $| = 1;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/AnteREPL.pm view on Meta::CPAN
use strict;
use warnings;
package App::AnteREPL;
use Data::Dumper ();
use Encode qw(decode encode FB_CROAK);
use File::Basename qw(dirname);
use File::Spec ();
use File::Temp ();
use Text::Balanced qw(extract_quotelike);
lib/App/AnteREPL.pm view on Meta::CPAN
sub inspect_value {
my ($self, $command, $expression) = @_;
die "$command needs a Perl expression.\n" unless $expression =~ /\S/;
if ($command eq 'DUMP') {
local $Data::Dumper::Sortkeys = 1;
print $self->evaluate("Data::Dumper::Dumper(do { $expression\n })", 0);
return;
}
require Devel::Peek;
require POSIX;
# Devel::Peek writes to the native stderr descriptor, bypassing tied Perl
lib/App/AnteREPL.pm view on Meta::CPAN
Redefining warns by default and replaces the function.
FUNCTIONS List defined names in this workspace, alphabetically.
Includes imports; excludes other packages and stubs.
Works during AUTO; does not execute or store source.
? expression Evaluate in scalar context and display the result.
DUMP expression Data::Dumper output: DUMP $FOO or DUMP \%ENV.
PEEK expression Devel::Peek internals: PEEK $FOO or PEEK $FOO, 10.
Use $x = 1 or our $x for persistent values; my is local to one evaluation.
say/print display output. RUN shares package variables with immediate input.
Stored subroutines become callable after RUN; LOAD/LIST do not define them.
lib/App/AnteREPL.pm view on Meta::CPAN
$self->inspect_value($1, $2);
return 1;
}
if ($line =~ /\A\s*\?\s*(.*)\z/s) {
my $value = $self->evaluate($1, 0);
print Data::Dumper->new([$value])->Terse(1)->Indent(1)->Sortkeys(1)->Dump;
return 1;
}
if ($line =~ /\A\s*(!{1,2})\s*(\S.*)\z/) {
my ($escape, $command) = ($1, $2);
my @command = $^O eq 'MSWin32' ? ($ENV{COMSPEC} || 'cmd.exe', '/c', $command) : ('/bin/sh', '-c', $command);
lib/App/AnteREPL.pm view on Meta::CPAN
Immediate input and RUN share a Perl package. C<$x = 1> and C<our $x = 1> persist
between evaluations, along with package arrays, hashes, and subroutines.
C<my> variables are local to one immediate evaluation or one complete RUN.
Pragmas and lexical imports must be repeated in each evaluation that needs
them; C<say> is enabled by default. Evaluation uses scalar context. Use
C<? expression> for Data::Dumper output; ordinary input does not automatically
print its return value. C<EVAL code> bypasses command and line-number parsing.
EVAL must be uppercase; lowercase C<eval> retains Perl's string/block evaluation
and exception-catching behavior. All REPL commands and subcommands must also
be uppercase.
lib/App/AnteREPL.pm view on Meta::CPAN
No extra continuation prompt is printed, and input is never compiled merely
to decide whether it needs another row. This is delimiter continuation, not a
complete Perl parser; use EDIT or literal numbered lines for heredocs/POD and
complex source. Numbered program lines retain their existing single-line rules.
DUMP expression is a prompt command backed by Data::Dumper::Dumper:
$FOO = {
bar => 1,
names => [qw(Alice Bob)],
};
view all matches for this distribution
view release on metacpan or search on metacpan
tools/generate-spec-pm.pl view on Meta::CPAN
use strict;
use warnings;
use 5.010;
use FindBin '$Bin';
use Data::Dumper;
use YAML::PP;
my $specfile = "$Bin/../share/appspec-spec.yaml";
my $pm = "$Bin/../lib/App/AppSpec/Spec.pm";
my $yp = YAML::PP->new( schema => [qw/ JSON /] );
my $SPEC = $yp->load_file($specfile);
local $Data::Dumper::Sortkeys = 1;
local $Data::Dumper::Indent = 1;
my $dump = Data::Dumper->Dump([$SPEC], ['SPEC']);
open my $fh, '<', $pm or die $!;
my $module = do { local $/; <$fh> };
close $fh;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Asciio/Elements.pm view on Meta::CPAN
use strict;
use warnings;
use Carp ;
use Data::Dumper ;
use Data::TreeDumper ;
use File::Slurp ;
use Clone;
use List::Util qw(min max) ;
use List::MoreUtils qw(any minmax first_value) ;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/AutoCRUD/View/Dumper.pm view on Meta::CPAN
use strict;
use warnings;
use Moose;
use namespace::autoclean;
use Data::Dumper;
extends 'App::AutoCRUD::View';
sub render {
my ($self, $data, $context) = @_;
local $Data::Dumper::Indent = 1;
my $output = Dumper $data;
return [200, ['Content-type' => 'text/plain'], [$output] ];
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Automaton.pm view on Meta::CPAN
use Moo;
use YAML::Tiny;
use Module::Load;
use Data::Dumper;
has conf => ( is => 'rw' );
has yaml_conf => ( is => 'rw' );
has conf_file => ( is => 'rw' );
has found_bits => ( is => 'rw' );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/BS/CLI.pm view on Meta::CPAN
use v5.40;
use Carp;
use Pod::Usage;
use Const::Fast;
use Data::Dumper;
use Getopt::Long qw(GetOptionsFromArray :config auto_abbrev permute bundling);
const our $S_MULTI_BAREARG => "Two bare argument handlers are defined. Please"
. " remove either 'getopts->{\"<>\"}' or 'handle_bareargs' in 'new'.";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/BambooCli.pm view on Meta::CPAN
use Carp;
use Scalar::Util;
use List::Util;
#use List::MoreUtils;
use Getopt::Alt;
use Data::Dumper qw/Dumper/;
use English qw/ -no_match_vars /;
use Path::Tiny;
use YAML::Syck qw/ LoadFile DumpFile /;
use App::BambooCli::Config;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Basis/Queue.pm view on Meta::CPAN
# we are only interested in 10 messages
if( ++$counter > 10) {
$q->unsubscribe( queue => $queue) ;
} else {
say Data::Dumper( $data) ;
}
}
my $queue = App::Basis::Queue->new( dbh => $dbh) ;
$queue->subscribe( queue => '/logs/*', callback => \&handler) ;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/BatParser.pm view on Meta::CPAN
=head1 SYNOPSYS
use App::BatParser;
use Path::Tiny;
use Data::Dumper;
my $parser = App::BatParser->new;
my $bat_string = Path::Tiny::path('t/cmd/simple.cmd')->slurp;
say Dumper($parser->parse($bat_string));
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Beeminder/Hook.pm view on Meta::CPAN
package App::Beeminder::Hook;
use Dancer ':syntax';
use JSON::Any;
use autodie;
use Data::Dumper;
# ABSTRACT: Integrate Github and Beeminder
our $VERSION = '0.1';
view all matches for this distribution
view release on metacpan or search on metacpan
cpanfile.snapshot view on Meta::CPAN
DBD::mysql::db 4.028
DBD::mysql::dr 4.028
DBD::mysql::st 4.028
requirements:
DBI 1.08
Data::Dumper 0
Test::Deep 0
Test::More 0
perl 5.008001
DBI-1.632
pathname: T/TI/TIMB/DBI-1.632.tar.gz
cpanfile.snapshot view on Meta::CPAN
ExtUtils-Config-0.008
pathname: L/LE/LEONT/ExtUtils-Config-0.008.tar.gz
provides:
ExtUtils::Config 0.008
requirements:
Data::Dumper 0
ExtUtils::MakeMaker 6.30
strict 0
warnings 0
ExtUtils-Helpers-0.022
pathname: L/LE/LEONT/ExtUtils-Helpers-0.022.tar.gz
view all matches for this distribution
view release on metacpan or search on metacpan
use Getopt::Std ; getopts '~=!R:d:0:h:i:np:rt:' , \my %o ;
use List::Util qw [ max ] ;
use Encode qw/decode_utf8/ ;
use Memoize ;
use Data::Dumper ;
use Term::ANSIColor qw[ :constants] ; $Term::ANSIColor::AUTORESET = 1 ;
memoize ( 'sCols' ) ; # ãã®ããã°ã©ã ã«ç¾ãã sCols 颿°ãé«éåããã
$| = 1 if $o{'!'} ;
# åè¡ã®åºåå¦çã sCols颿°ãå¼ã³åºãã¦ã鏿ããã-n ã§åçªå·ãä»ããã
sub line ( ) {
chomp ;
& R0proc ;
$_ = decode_utf8 ( $_ ) if $isep eq '' ; # å
¥åãSTDINã¨ã¯éããªãã®ã§ binmode ã使ãã decode_utf8
my @F = split /$isep/ , $_ , $split_limit ; #use Data::Dumper ; print scalar @F , Dumper [@F];
@F = map { $_ + 1 . ":$F[$_]" } 0 .. $#F if $o{n} ; # -n ã§åçªå·ãã³ãã³ãä»ãã¦åºå
push @F , $emp ; # $F[-1] ã§åç
§ãã
print join ( "$osep" , @F [ @{ sCols $#F } ] ) , "\n" ;
}
view all matches for this distribution
view release on metacpan or search on metacpan
scripts/csel view on Meta::CPAN
#use List::MoreUtils qw/any none/ ;
use List::Util qw [ max ] ;
use Encode qw/decode_utf8/ ;
use Memoize ;
use Data::Dumper ;
use Term::ANSIColor qw[ :constants] ; $Term::ANSIColor::AUTORESET = 1 ;
memoize ( 'sCols' ) ; # ãã®ããã°ã©ã ã«ç¾ãã sCols 颿°ãé«éåããã
$| = 1 if $o{'!'} ;
scripts/csel view on Meta::CPAN
# åè¡ã®åºåå¦çã sCols颿°ãå¼ã³åºãã¦ã鏿ããã-n ã§åçªå·ãä»ããã
sub line ( ) {
chomp ;
$_ = decode_utf8 ( $_ ) if $isep eq '' ; # å
¥åãSTDINã¨ã¯éããªãã®ã§ binmode ã使ãã decode_utf8
my @F = split /$isep/ , $_ , $split_limit ; #use Data::Dumper ; print scalar @F , Dumper [@F];
@F = map { $_ + 1 . ":$F[$_]" } 0 .. $#F if $o{n} ; # -n ã§åçªå·ãã³ãã³ãä»ãã¦åºå
push @F , $emp ; # $F[-1] ã§åç
§ãã
print join ( "$osep" , @F [ @{ sCols $#F } ] ) , "\n" ;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/BitBucketCli.pm view on Meta::CPAN
use Moo;
use warnings;
use Carp;
use WWW::Mechanize;
use JSON::XS qw/decode_json encode_json/;
use Data::Dumper qw/Dumper/;
use English qw/ -no_match_vars /;
use App::BitBucketCli::Core;
our $VERSION = 0.009;
view all matches for this distribution
view release on metacpan or search on metacpan
cpanfile.snapshot view on Meta::CPAN
ExtUtils-Config-0.008
pathname: L/LE/LEONT/ExtUtils-Config-0.008.tar.gz
provides:
ExtUtils::Config 0.008
requirements:
Data::Dumper 0
ExtUtils::MakeMaker 6.30
strict 0
warnings 0
ExtUtils-Helpers-0.026
pathname: L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz
view all matches for this distribution
view release on metacpan or search on metacpan
misc/agent-context/.claude/skills/getty-perl-core/SKILL.md view on Meta::CPAN
## Style
- **2-space indentation** â not 4, not tabs.
- **Trailing comma after the last element** of every multi-line list, hash or call.
- **Section long files with a figlet banner** comment (`standard`, `slant`, `small`, `banner`); short file or no figlet â a `#### <Name>` rule.
- **Debug with `DDP`** (`Data::Printer`), never `Data::Dumper` in shipped code. Live debug calls go before commit; **commented-out ones stay** (`#use DDP; p($res);`) â they mark where debugging was needed.
## cpanfile
- **Requirements live in `cpanfile`**, not `dist.ini` prereq blocks.
- **`requires 'Module::Name';`** â omit the version when unpinned, never `'0'`. A version means "or higher": `requires 'Foo', '5.0';`, never `'>= 5.0'`.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/CCSV.pm view on Meta::CPAN
package App::CCSV;
use strict;
use Data::Dumper;
use App::CCSV::TieCSV;
use Text::CSV_XS;
use Config::General;
require Exporter;
our @ISA = qw(Exporter);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/CELL/Config.pm view on Meta::CPAN
use warnings;
use 5.012;
use App::CELL::Log qw( $log );
use App::CELL::Status;
#use Data::Dumper;
use Scalar::Util qw( blessed );
=head1 NAME
App::CELL::Config -- load, store, and dispense meta parameters, core
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/CISetup/Role/ConfigFile.pm view on Meta::CPAN
$yaml =~ s/^/# /gm;
# Yes, this is YAML embedded in YAML as a comment. Yes, this is dumb. Yes,
# this is necessary. Unfortunately, AppVeyor chokes on random keys in its
# config file, so we have no choice but to use a comment. We could use
# Data::Dumper but we're already using YAML, and I don't really love doing
# an "eval" when trying to read this data.
return sprintf( <<'EOF', $yaml );
### __app_cisetup__
%s
### __app_cisetup__
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
*{"${package}::$field"} = $sub;
return $code if defined wantarray;
}
sub default_as_code {
require Data::Dumper;
local $Data::Dumper::Sortkeys = 1;
my $code = Data::Dumper::Dumper(shift);
$code =~ s/^\$VAR1 = //;
$code =~ s/;$//;
return $code;
}
inc/Spiffy.pm view on Meta::CPAN
# Debugging support
#===============================================================================
sub spiffy_dump {
no warnings;
if ($dump eq 'dumper') {
require Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
return Data::Dumper::Dumper(@_);
}
require YAML;
$YAML::UseVersion = 0;
return YAML::Dump(@_) . "...\n";
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
*{"${package}::$field"} = $sub;
return $code if defined wantarray;
}
sub default_as_code {
require Data::Dumper;
local $Data::Dumper::Sortkeys = 1;
my $code = Data::Dumper::Dumper(shift);
$code =~ s/^\$VAR1 = //;
$code =~ s/;$//;
return $code;
}
inc/Spiffy.pm view on Meta::CPAN
# Debugging support
#===============================================================================
sub spiffy_dump {
no warnings;
if ($dump eq 'dumper') {
require Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
return Data::Dumper::Dumper(@_);
}
require YAML;
$YAML::UseVersion = 0;
return YAML::Dump(@_) . "...\n";
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
*{"${package}::$field"} = $sub;
return $code if defined wantarray;
}
sub default_as_code {
require Data::Dumper;
local $Data::Dumper::Sortkeys = 1;
my $code = Data::Dumper::Dumper(shift);
$code =~ s/^\$VAR1 = //;
$code =~ s/;$//;
return $code;
}
inc/Spiffy.pm view on Meta::CPAN
# Debugging support
#===============================================================================
sub spiffy_dump {
no warnings;
if ($dump eq 'dumper') {
require Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
return Data::Dumper::Dumper(@_);
}
require YAML;
$YAML::UseVersion = 0;
return YAML::Dump(@_) . "...\n";
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
*{"${package}::$field"} = $sub;
return $code if defined wantarray;
}
sub default_as_code {
require Data::Dumper;
local $Data::Dumper::Sortkeys = 1;
my $code = Data::Dumper::Dumper(shift);
$code =~ s/^\$VAR1 = //;
$code =~ s/;$//;
return $code;
}
inc/Spiffy.pm view on Meta::CPAN
# Debugging support
#===============================================================================
sub spiffy_dump {
no warnings;
if ($dump eq 'dumper') {
require Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
return Data::Dumper::Dumper(@_);
}
require YAML;
$YAML::UseVersion = 0;
return YAML::Dump(@_) . "...\n";
}
view all matches for this distribution