view release on metacpan or search on metacpan
lib/AnyMongo/Collection.pm view on Meta::CPAN
$request_id, $db.'.$cmd', 0, 0, -1, $last_error);
# $conn->recv($cursor);
$conn->send_message("$req$query");
my ($number_received,$cursor_id,$result) = $conn->recv_message();
# use Data::Dumper;
# warn "_make_safe getlasterror number_received:$number_received cursor_id:$cursor_id result=> ".Dumper($result);
if ( $number_received == 1 ) {
my $ok = $result->[0];
# $result->{ok} is 1 if err is set
view all matches for this distribution
view release on metacpan or search on metacpan
if($ENV{MOD_PERL}) {
# Only pre-load these if in a mod_perl environment for sharing memory post fork.
# These will not be loaded then for CGI until absolutely necessary at runtime
push(@load_modules, qw(
mod_perl
MLDBM::Serializer::Data::Dumper Devel::Symdump CGI
Apache::ASP::StateManager Apache::ASP::Session Apache::ASP::Application
Apache::ASP::StatINC Apache::ASP::Error
)
);
}
'such as: SDBM_File (default), or DB_File',
StateSerializer =>
'cannot load StateSerializer '.
'must be a valid serializing perl module for use with MLDBM '.
'such as Data::Dumper (default), or Storable',
StatINC => "You need this module for StatINC, please download it from CPAN",
'Cache' => "You need this module for xml output caching",
my $parse_data = $self->Parse($include);
my $no_cache = $self->{no_cache};
my $data;
# use Data::Dumper qw(Dumper);
# print STDERR Dumper($include, $parse_data);
# $self->Debug($self);
if ($parse_data->{is_perl}) {
my $sub = $self->CompilePerl($parse_data->{data}, $subid, $package);
of the state management, moving to MLDBM::Sync for its
subsystem.
=item StateSerializer
default Data::Dumper, you may set this to Storable for
faster serialization and storage of data into state objects.
This is particularly useful when storing large objects in
$Session and $Application, as the Storable.pm module has a faster
implementation of freezing and thawing data from and to
perl structures. Note that if you are storing this much
that SDBM_File has on key/value lengths.
This configuration setting may be changed in production
as the state database's serializer type is stored
in the internal state manager which will always use
Data::Dumper & SDBM_File to store data.
PerlSetVar StateSerializer Data::Dumper
=head2 Sessions
=item CookiePath
chmod -R -0777 eg
will take care of the write access issue for initial testing purposes.
Failing write access being the problem, try upgrading your version
of Data::Dumper and MLDBM, which are the modules used to write the
state files.
=head2 Sessions
=item How can I use $Session to store complex data structures.
=item $VERSION = 2.23; $DATE="10/11/2001";
+Make sure a couple other small standard modules get loaded
upon "PerlModule Apache::ASP", like Time::HiRes, Class::Struct,
and MLDBM::Serializer::Data::Dumper. If not available
these modules won't cause errors, but will promote child httpd
RAM sharing if they are.
-XMLSubs args parsing fix so an arg like z-index
does not error under UseStrict. This is OK now:
the configurations for $Application & $Session
in an internal database, so that if $Session was
created with SDBM_File for the StateDB (default),
it will keep this StateDB setting until it ends.
+StateSerializer config setting. Default Data::Dumper,
can also be set to Storable. Controls how data is
serialized before writing to $Application & $Session.
+Beefed up the make test suite.
view all matches for this distribution
view release on metacpan or search on metacpan
use XML::Simple ;
# thinking of using XML::XPath instead of XML::Simple.
# use XML::XPath ;
use Data::Dumper ;
# version info
$Apache::Access::Headers::VERSION = '0.01' ;
$Apache::Access::Headers::REVISION = '$Revision: 1.5 $' ;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Action.pm view on Meta::CPAN
use strict;
use vars qw($VERSION @ISA %ACTIONS);
use Carp;
use Exporter;
use Data::Dumper;
use Apache::Constants qw(:response);
$VERSION = 0.02;
@ISA = qw(Exporter);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Admin/Config.pm view on Meta::CPAN
{
return $self->_set_error(sprintf('%s: syntax error at line %d', $file, $n));
}
}
eval('use Data::Dumper; print Data::Dumper::Dumper($self), "\n";') if($Apache::Admin::Config::DEBUG);
return 1;
}
sub _get_arg
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Auth/AuthMemCookie.pm view on Meta::CPAN
use Apache2::Log;
use Cache::Memcached;
use vars qw($VERSION);
$VERSION = '0.04';
use Data::Dumper;
=pod
=head1 B<Apache::Auth::AuthMemCookie - Authenticate using a memcache stored session>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/AuthCookieNTLM.pm view on Meta::CPAN
# Small wrapper to Apache::AuthenNTLM to store user login details to cookie
# and reduce the number of PDC requests.
use strict;
use Data::Dumper;
use Apache::Constants ':common';
use Apache::Request;
use Apache::Cookie;
use Apache::AuthenNTLM;
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
WriteMakefile
(
'NAME' => 'Apache::AuthenLDAP',
'VERSION_FROM' => 'AuthenLDAP.pm',
'PREREQ_PM' => { 'Apache' => '1.24', 'Net::LDAP' => '0.19',
'Data::Dumper' => '2.101' },
'dist' => { 'COMPRESS' => 'gzip -9f', 'SUFFIX' => 'gz', },
);
view all matches for this distribution
view release on metacpan or search on metacpan
AutoIndex.pm view on Meta::CPAN
place_doc($r, $cfg, 'readme');
print " <HR>" . $ENV{'SERVER_SIGNATURE'};
if ($config->{debug}) {
use Data::Dumper;
print "<PRE>";
print "<HR>\%list<BR><BR>";
print Dumper \%$list;
print "<HR>\$cfg<BR><BR>";
print Dumper $cfg;
AutoIndex.pm view on Meta::CPAN
push (@s , "Done " . $nDir . " listings so far<BR>");
push (@s , "Done " . $nRedir . " redirects so far<BR>");
push (@s , "Done " . $nIndex. " indexes so far<BR>");
push (@s , "Done " . $nThumb. " thumbnails so far<BR>");
use Data::Dumper;
my $string = Dumper $cfg;
push (@s, $string);
return \@s;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/AxKit/Provider/XMLDOMProvider.pm view on Meta::CPAN
use Apache::AxKit::Provider::File;
use XML::LibXML;
use LWP::UserAgent;
use Time::Piece;
# only used for debugging
#use Data::Dumper;
require Exporter;
our @ISA = qw(Exporter Apache::AxKit::Provider);
view all matches for this distribution
view release on metacpan or search on metacpan
examples/server.pl view on Meta::CPAN
AGAIN:
$act = $self->{map}->{$id};
# print "\naction: $act for $id\n";
if (defined($self->{decay}->{$id})) {
my $d = $self->{decay}->{$id};
# require Data::Dumper;
# print "\n".Data::Dumper->Dump([$d]);
if ($d->{delay} > 0) {
if ($act eq 'delay') {
if (exists($decay{$d->{delay}})) {
$out{$id} = $decay{$d->{delay}};
} else {
view all matches for this distribution
view release on metacpan or search on metacpan
t/02parser.t view on Meta::CPAN
is($c->find_siblings_directive_names(($c->root->daughters)[-1],
'LoadModule'),
$load_modules[$i],
"found $load_modules[$i] LoadModule's one level down");
# Data::Dumper does not sort the hash keys so different versions of
# Perl generate the same object but different Data::Dumper::Dumper
# outputs. To work around this, recursively descend into the object
# and print the output ourselves. Also, the errstr object variable
# will sometimes be set and contain operating system specific error
# messages which will not compare identically with the error
# messages in the answer files, so modify them by removing the
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
use ExtUtils::MakeMaker ();
use Cwd ;
use Data::Dumper ;
foreach my $f ('makepl_args.apache_dav', '../makepl_args.apache_dav')
{
if (-f $f)
{
Makefile.PL view on Meta::CPAN
'OPTIMIZE' => '-ggdb',
) ;
open FH, ">xs/mmargs.pl" or die "Cannot open xs/mmargs.pl ($!)" ;
print FH Data::Dumper -> Dump ([\%MMARGS], ['MMARGS']) ;
close FH ;
ExtUtils::MakeMaker::WriteMakefile(
'NAME' => 'Apache::DAV',
view all matches for this distribution
view release on metacpan or search on metacpan
bin/webstat_mail.pl view on Meta::CPAN
use strict;
use DBI;
use Carp;
use vars qw(%opts %conf);
use Getopt::Std;
use Data::Dumper;
use Date::Format;
use Net::SMTP;
getopts("dtc:MTh", \%opts);
&usage if ($opts{h});
bin/webstat_mail.pl view on Meta::CPAN
# for each server: do something..
while( my ($server, $serverconfig) = each %WebStat::Config::server) {
next if ($server eq "default");
print "$server\n" if $opts{d};
#print Data::Dumper->Dump([\$serverconfig], [qw($serverconfig)]) if $opts{d};
# setup a few useful dates
my %dates = (
today => time2str("%Y-%m-%d", time),
yesterday => time2str("%Y-%m-%d", time-(60*60*24)),
bin/webstat_mail.pl view on Meta::CPAN
sub readconfigfile {
my $conffile = $opts{c} || "./webstat.conf";
require $conffile;
if ($opts{d}) {
#print Data::Dumper->Dump([\%WebStat::Config::server], [qw(server)]);
#print Data::Dumper->Dump([\%WebStat::Config::database], [qw(database)]);
}
}
# count hits and traffic
view all matches for this distribution
view release on metacpan or search on metacpan
DebugInfo.pm view on Meta::CPAN
use 5.005;
use mod_perl 1.2401;
use Apache::Constants qw( OK DECLINED );
use Apache::File;
use Apache::Log;
use Data::Dumper;
use strict;
$Apache::DebugInfo::VERSION = '0.05';
# set debug level
DebugInfo.pm view on Meta::CPAN
my %hash = %$pnotes;
foreach my $field (sort keys %hash) {
my $value = $hash{$field};
my $d = Data::Dumper->new([$value]);
$d->Pad("\t\t");
$d->Indent(1);
$d->Quotekeys(0);
$d->Terse(1);
view all matches for this distribution
view release on metacpan or search on metacpan
lang/langdbm.pl view on Meta::CPAN
#!/usr/bin/perl
use strict;
use MLDBM qw(GDBM_File Data::Dumper);
use Fcntl;
use Data::Dumper;
my %lang = ();
opendir(DH, ".") or die $!;
view all matches for this distribution
view release on metacpan or search on metacpan
FileManager.pm view on Meta::CPAN
use File::stat;
use Archive::Any;
use POSIX qw(strftime);
use CGI::Cookie;
use Apache::Constants ':common';
#use Data::Dumper;
require 5.005_62;
our $VERSION = '0.19';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/GD/Graph.pm view on Meta::CPAN
=back
=cut
use strict;
use Data::Dumper;
use Apache;
use Apache::Constants qw/OK/;
use HTTP::Date;
use GD;
use GD::Text;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Gallery.pm view on Meta::CPAN
use CGI::Cookie;
use Encode;
use HTTP::Date;
use Digest::MD5 qw(md5_base64);
use Data::Dumper;
# Regexp for escaping URI's
my $escape_rule = "^A-Za-z0-9\-_.!~*'()\/";
my $memoized;
lib/Apache/Gallery.pm view on Meta::CPAN
Examples of keys: B<ShutterSpeedValue>, B<ApertureValue>, B<SubjectDistance>,
and B<Camera>
You can view all the keys from the EXIF header using this perl-oneliner:
perl C<-e> 'use Data::Dumper; use Image::Info qw(image_info); print Dumper(image_info(shift));' filename.jpg
Default is: 'Picture Taken => DateTimeOriginal, Flash => Flash'
=item B<GallerySizes>
view all matches for this distribution
view release on metacpan or search on metacpan
Client/httunnel view on Meta::CPAN
use IO::Select ;
use IO::Pipe ;
use IO::Handle ;
BEGIN { eval { require Sys::Syslog } }
use HTTunnel::Client ;
use Data::Dumper ;
use POSIX qw(setsid) ;
$SIG{CHLD} = 'IGNORE' ;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Hadoop/Watcher/Base.pm view on Meta::CPAN
use strict;
use warnings;
use IO::Socket::INET;
use LWP::UserAgent;
use Data::Dumper;
our @ISA = qw();
our $VERSION = '0.01';
lib/Apache/Hadoop/Watcher/Base.pm view on Meta::CPAN
Apache::Hadoop::Watcher::Jmx
Apache::Hadoop::Watcher::Yarn
Apache::Hadoop::Watcher
IO::Socket::INET;
LWP::UserAgent;
Data::Dumper;
=head1 AUTHOR
Snehasis Sinha, E<lt>snehasis@cpan.orgE<gt>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Hadoop/WebHDFS.pm view on Meta::CPAN
=head2 list a HDFS directory on a secure hadop cluster
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use Apache::Hadoop::WebHDFS;
my $username=getlogin();
my $hdfsclient = Apache::Hadoop::WebHDFS->new( {namenode =>"mynamenode.example.com",
namenodeport =>"50070",
authmethod =>"gssapi",
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Handlers.pm view on Meta::CPAN
my %code = ( );
sub dump {
eval {
use Data::Dumper;
return Data::Dumper -> Dump([\%code]);
};
}
my %phases = qw:
CHILDINIT PerlChildInitHandler
lib/Apache/Handlers.pm view on Meta::CPAN
=over 4
=item dump
This will dump the current set of code references and return the string.
This uses L<Data::Dumper|Data::Dumper>.
=item reset
This will clear out all previously set code. This should only be used in
the C<startup.pl> or equivalent so that code doesn't get run twice during a
lib/Apache/Handlers.pm view on Meta::CPAN
=head1 SEE ALSO
L<Apache>,
L<Attribute::Handlers>,
L<Data::Dumper>.
=head1 AUTHOR
James G. Smith <jsmith@cpan.org>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/HeavyCGI/Debug.pm view on Meta::CPAN
package Apache::HeavyCGI::Debug;
use base 'Class::Singleton';
use Data::Dumper;
use strict;
sub as_string {
my Apache::HeavyCGI::Debug $self = shift;
my Apache::HeavyCGI $mgr = shift;
lib/Apache/HeavyCGI/Debug.pm view on Meta::CPAN
while (($k,$v) = each %$mgr){
next unless defined $v;
$f{$k} = $v;
}
Data::Dumper::Dumper( \%f )
}
1;
=head1 NAME
Apache::HeavyCGI::Debug - inspect the Pseudohash as Hash with Data::Dumper
=head1 SYNOPSIS
push @layout, "<BR><PRE>",
$self->instance_of("Apache::HeavyCGI::Debug"),
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Imager/Resize.pm view on Meta::CPAN
use File::Basename ();
use File::Path ();
use Apache::Constants (':common');
use Imager;
use Data::Dumper;
use Apache::ModuleConfig ();
use DynaLoader ();
use vars qw($VERSION);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/JAF.pm view on Meta::CPAN
use Apache::Request ();
use Apache::Constants qw( :common REDIRECT );
use Apache::File ();
use Data::Dumper qw( Dumper );
use File::Find ();
our $WIN32 = $^O =~ /win32/i;
our $RX = $WIN32 ? qr/\:(?!(?:\/|\\))/ : qr/\:/;
our $VERSION = do { my @r = (q$Revision: 0.21 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
lib/Apache/JAF.pm view on Meta::CPAN
my $messages = $modeller->messages();
if ($messages) {
Apache::Cookie->new($self->{r},
-name => 'messages',
-path => '/',
-value => Data::Dumper::Dumper $messages)->bake();
}
} elsif ($self->{status} == OK && $self->{type} =~ /^text/ && !$self->{r}->header_only) {
my $VAR1;
if (exists $self->{cookies}{messages} && eval $self->{cookies}{messages}->value) {
$self->{res}{messages} = $VAR1;
view all matches for this distribution
view release on metacpan or search on metacpan
Language.pm view on Meta::CPAN
use vars qw(%CACHE $VERSION @ISA $DEBUG $DEFAULT_HANDLER $AUTOLOAD %DEBUG);
use Apache::Language::Constants;
use Apache::ModuleConfig;
use IO::File;
use Data::Dumper;
use I18N::LangTags qw(is_language_tag similarity_language_tag same_language_tag);
@ISA = qw(DynaLoader);
$VERSION = '0.14';
$DEBUG=0;
view all matches for this distribution
view release on metacpan or search on metacpan
xl_ => { class => 'DBD::Excel', },
yaswi_ => { class => 'DBD::Yaswi', },
};
sub dump_dbd_registry {
require Data::Dumper;
local $Data::Dumper::Sortkeys=1;
local $Data::Dumper::Indent=1;
print Data::Dumper->Dump([$dbd_prefix_registry], [qw($dbd_prefix_registry)]);
}
# --- Dynamically create the DBI Standard Interface
my $keeperr = { O=>0x0004 };
%attributes,
# merge in modified attr in %$old_dbh, this should also copy in
# the dbi_connect_closure attribute so we can reconnect again.
%{ $override_attr || {} },
};
#warn "connect_closure: ".Data::Dumper::Dumper([\%attributes, $override_attr]);
my $dbh;
unless ($dbh = $drh->$connect_meth($dsn, $user, $pass, $attr)) {
$user = '' if !defined $user;
$dsn = '' if !defined $dsn;
AutoCommit ChopBlanks InactiveDestroy
LongTruncOk PrintError PrintWarn Profile RaiseError
ShowErrorStatement TaintIn TaintOut
));
}
# use Data::Dumper; warn Dumper([$old_dbh, $attr]);
my $new_dbh = &$closure($old_dbh, $attr);
unless ($new_dbh) {
# need to copy err/errstr from driver back into $old_dbh
my $drh = $old_dbh->{Driver};
return $old_dbh->set_err($drh->err, $drh->errstr, $drh->state);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Logmonster.pm view on Meta::CPAN
our $VERSION = '5.36';
use Carp;
use Compress::Zlib;
use Cwd;
#use Data::Dumper;
use Date::Parse;
use FileHandle;
use File::Basename;
use File::Copy;
use Regexp::Log;
view all matches for this distribution
view release on metacpan or search on metacpan
use strict;
use Apache::DBI;
use DBI;
use Apache::Constants qw(OK NOT_FOUND SERVER_ERROR AUTH_REQUIRED);
use Apache::Request ();
use Data::Dumper;
use vars qw($VERSION %owa_mapping %owa_version);
my $DEBUG = 0;
$VERSION = '0.7';
view all matches for this distribution