view release on metacpan or search on metacpan
examples/complex/complex_endpoint.pl view on Meta::CPAN
} else {
print $q->header('text/plain');
print "ERROR";
}
sub update {
my $q = shift;
my $group_id = $q->param('group_id');
my $queue = $q->param('queue');
return unless $queue && $group_id;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Tarotplane/UI.pm view on Meta::CPAN
erase($self->{MainWin});
noutrefresh($self->{MainWin});
}
sub update {
my $self = shift;
doupdate();
lib/App/Tarotplane/UI.pm view on Meta::CPAN
noutrefresh($self->{MainWin});
}
sub update_size {
my $self = shift;
$self->wipe();
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Test/Generator/SchemaExtractor.pm view on Meta::CPAN
=head3 Success Indicator Detection
Methods that always return true (typically for side effects):
sub update_status {
my ($self, $status) = @_;
$self->{status} = $status;
return 1; # Success indicator
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/TimelogTxt/Day.pm view on Meta::CPAN
sub is_empty { return !$_[0]->{dur}; }
sub is_complete { return !$_[0]->{last_start}; }
sub date_stamp { return $_[0]->{stamp}; }
sub has_tasks { return !!keys %{$_[0]->{tasks}}; }
sub update_dur
{
my ($self, $last, $epoch) = @_;
my $curr_dur = $last ? $epoch - $last->epoch : 0;
$self->{tasks}->{$last->task}->{dur} += $curr_dur if $last && $last->task;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/USBKeyCopyCon.pm view on Meta::CPAN
$self->key_rack->remove($key_info->{widget});
return;
}
sub update_key_progress {
my($self, $udi, $status) = @_;
$status = -1 if !defined $status or $status < -1 or $status > 10;
my $key_info = $self->current_keys->{$udi} or return;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/UpdateCPANfile.pm view on Meta::CPAN
my $changeset = $self->create_pin_dependencies_changeset;
$self->_save_changes_to_file($changeset);
return $changeset;
}
sub update_dependencies {
my ($self) = @_;
my $changeset = $self->create_update_dependencies_changeset;
my $writer = $self->writer;
$self->_save_changes_to_file($changeset);
return $changeset;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/WIoZ.pm view on Meta::CPAN
$wioz->update_colors("file.sl.txt");
=cut
sub update_colors{
my ($self, $filename) = @_;
open my $fh, '<:utf8', $filename or die $filename . ' : ' .$!;
my @L = <$fh>;
close $fh;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/XUL/Object.pm view on Meta::CPAN
my ($self, $xml, $pos) = @_;
$pos = 'end' unless defined $pos; # pos: end|start|...
return main::push({'action' => 'insert', 'id' => $self->{'id'}, 'position' => $pos, 'content' => $xml});
}
sub update
{
my ($self, @xml) = @_;
my $xml = join '', @xml;
return main::push({'action' => 'update', 'id' => $self->{'id'}, 'content' => $xml});
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ansicolumn/Command.pm view on Meta::CPAN
$stdin->print($data);
$stdin->seek(0, 0) or die "seek: $!\n";
$obj;
}
sub update {
my $obj = shift;
my @command = $obj->command;
# Flatten if nested array
@command = @{$command[0]} if @command == 1 && ref $command[0] eq 'ARRAY';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/financeta/gui/editor.pm view on Meta::CPAN
my $hlres = $ed->hiliteREs;
$ed->hiliteREs([@arr, @$hlres]);
return $mw;
}
sub update_editor {
my ($self, $rules, $tabname, $vars, $hidden) = @_;
$self->tab_name($tabname) if defined $tabname;
$self->compiler->preset_vars($vars) if defined $vars;
$self->main->editor_edit->text($rules);
unless ($hidden) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/FlashVideo/Mechanize.pm view on Meta::CPAN
}
return $r;
}
sub update_html {
my($self, $html) = @_;
my $charset = _parse_charset($self->response->header("Content-type"));
# If we have no character set in the header (therefore it is worth looking
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ggdrv/update.pm view on Meta::CPAN
use URI ;
my ($GOOGLE_DRIVE_UPLOAD_API , $gfile , $atoken ) ;
return 1 ;
sub update {
$GOOGLE_DRIVE_UPLOAD_API = "https://www.googleapis.com/upload/drive/v3/files/";
$gfile = $ENV{ GGDRV_API } // "~/.ggdrv2303v1" ;
$atoken = qx [ sed -ne's/^ACCESS_TOKEN[ =:\t]*//p' $gfile ] =~ s/\n$//r ;
while ( my ($file,$id) = splice @ARGV , 0 , 2 ) { f_each ($file,$id) }
# & f_each ( split /:/, $_ , 2 ) for @ARGV ;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/git/ship/perl.pm view on Meta::CPAN
$self->system(qw(cover -delete));
$self->system(qw(prove -l));
$self->system(qw(cover));
}
sub update {
my $self = shift;
$self->_render_makefile_pl if -e 'cpanfile';
$self->_update_changes if $self->config('changelog_filename') eq 'Changes';
$self->_render_readme;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/idxdb.pm view on Meta::CPAN
schema => 'dirname*',
req => 1,
},
},
};
sub update {
require DateTime;
require DBIx::Util::Schema;
require JSON::MaybeXS;
my %args = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/instopt.pm view on Meta::CPAN
%args_common,
%App::swcat::arg0_softwares_or_patterns,
%argopt_download,
},
};
sub update {
require Archive::Any;
require File::Util::Test;
require File::Path;
require Filename::Archive;
require Filename::Executable;
lib/App/instopt.pm view on Meta::CPAN
args => {
%args_common,
%argopt_download,
},
};
sub update_all {
my %args = @_;
my $state = _init(\%args);
my $res = list_installed(%args);
return $res unless $res->[0] == 200;
view all matches for this distribution
view release on metacpan or search on metacpan
script/jupiter view on Meta::CPAN
my $parser = Pod::Simple::Text->new();
$parser->parse_file($0);
}
}
sub update_cache {
my ($feeds, $files) = read_opml(@_);
make_directories($feeds);
load_feed_metadata($feeds, $files);
my $ua = Mojo::UserAgent->new->with_roles('+Queued')
->max_redirects(3)
script/jupiter view on Meta::CPAN
$feed->{message} = "No entry newer than 90 days";
$feed->{code} = 206; # partial content
}
}
sub updated {
my $node = shift;
return unless $node;
my @nodes = $xpc->findnodes('pubDate | atom:published | atom:updated', $node) or return;
my $date = $nodes[0]->textContent;
my $dt = eval { DateTime::Format::Mail->parse_datetime($date) }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/karr/Foundation/ChainStore.pm view on Meta::CPAN
or return undef;
return _as_step( $step, $id );
}
sub update_step {
my ( $self, $id, $code ) = @_;
return undef unless _valid_id($id);
my $ref = $self->_step_ref($id);
# retry_contended reads an empty return as "lost the race, read again"; a
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/lcpan.pm view on Meta::CPAN
_
},
},
tags => ['write-to-db', 'write-to-fs'],
};
sub update {
my %args = @_;
_set_args_default(\%args);
my $cpan = $args{cpan};
my $packages_path = "$cpan/modules/02packages.details.txt.gz";
view all matches for this distribution
view release on metacpan or search on metacpan
mimi.fatpack view on Meta::CPAN
$fatpacked{"Class/Accessor/Lite.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'CLASS_ACCESSOR_LITE';
package Class::Accessor::Lite;use strict;our$VERSION='0.03';sub croak {require Carp;Carp::croak(@_)}sub import {shift;my%args=@_;my$pkg=caller(0);my%key_ctor=(rw=>\&_mk_accessors,ro=>\&_mk_ro_accessors,wo=>\&_mk_wo_accessors,);for my$key (sort keys...
CLASS_ACCESSOR_LITE
$fatpacked{"DBD/DBM.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'DBD_DBM';
require 5.008;use strict;package DBD::DBM;use base qw(DBD::File);use vars qw($VERSION $ATTRIBUTION $drh $methods_already_installed);$VERSION='0.03';$ATTRIBUTION='DBD::DBM by Jens Rehsack';sub driver ($;$) {my ($class,$attr)=@_;return$drh if ($drh);...
DBD_DBM
$fatpacked{"DBD/ExampleP.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'DBD_EXAMPLEP';
{package DBD::ExampleP;use strict;use Symbol;use DBI qw(:sql_types);require File::Spec;our (@EXPORT,$VERSION,@statnames,%statnames,@stattypes,%stattypes,@statprec,%statprec,$drh,);@EXPORT=qw();$VERSION="0.03";@statnames=qw(dev ino mode nlink uid gi...
DBD_EXAMPLEP
mimi.fatpack view on Meta::CPAN
}
EOI
DBI_DBD_SQLENGINE
$fatpacked{"DBI/Gofer/Execute.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'DBI_GOFER_EXECUTE';
package DBI::Gofer::Execute;use strict;use warnings;use Carp;use DBI qw(dbi_time);use DBI::Gofer::Request;use DBI::Gofer::Response;use base qw(DBI::Util::_accessor);our$VERSION="0.03";our@all_dbh_methods=sort map {keys %$_}$DBI::DBI_methods{db},$DB...
DBI_GOFER_EXECUTE
$fatpacked{"DBI/Gofer/Request.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'DBI_GOFER_REQUEST';
package DBI::Gofer::Request;use strict;use DBI qw(neat neat_list);use base qw(DBI::Util::_accessor);our$VERSION="0.03";use constant GOf_REQUEST_IDEMPOTENT=>0x0001;use constant GOf_REQUEST_READONLY=>0x0002;our@EXPORT=qw(GOf_REQUEST_IDEMPOTENT GOf_RE...
DBI_GOFER_REQUEST
view all matches for this distribution
view release on metacpan or search on metacpan
bin/org-daemon view on Meta::CPAN
check_for_alarms();
colorize_entries();
}
sub update_lb {
if ($overview_widget eq 'listbox') {
$lb->delete(0, "end");
} else {
$lb->delete('all');
}
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$examples =~ s/\r\n/\n/g;
update_file( $example_file, $examples );
};
};
sub update_file {
my( $filename, $new_content ) = @_;
my $content;
if( -f $filename ) {
open my $fh, '<', $filename
or die "Couldn't read '$filename': $!";
view all matches for this distribution
view release on metacpan or search on metacpan
script/phoebe-ctl view on Meta::CPAN
$subcommand->(@ARGV);
exit;
sub update_changes {
my %pages;
my $now = time;
$pages{decode_utf8($_)} = modified("$dir/page/$_.gmi") for map { s/\.gmi$//; $_ } grep /\.gmi$/, read_dir("$dir/page");
say "Read " . scalar(keys %pages) . " pages" if $log >= 3;
say join("\n", map { $_ . "\t" . $pages{$_} } sort keys %pages) if $log >= 4;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/pmodinfo.pm view on Meta::CPAN
my ( $self, $module ) = @_;
$module =~ s/::/-/g;
return "http://search.cpan.org/dist/$module";
}
sub update_modules {
my ( $self, @modules ) = @_;
my $cpan_util;
$cpan_util = which('cpanm') or which('cpan') or exit -1;
system( $cpan_util, @modules );
exit 0;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/rimetadb.pm view on Meta::CPAN
features => {
progress => 1,
dry_run => 1,
},
};
sub update_from_modules {
require Module::List;
require Module::Path::More;
require Package::Util::Lite;
my %args = @_;
lib/App/rimetadb.pm view on Meta::CPAN
extra => {
schema => 'str*',
},
},
};
sub update {
require Perinci::Sub::Normalize;
my %args = @_;
my ($res, $dbh) = _connect_db(\%args);
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
@section = map { $_ =~ s!^=\w+\s+!!; $_ } @section;
return join "", @section;
}
sub update_file {
my( $filename, $new_content ) = @_;
my $content;
if( -f $filename ) {
open my $fh, '<', $filename
or die "Couldn't read '$filename': $!";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/watchdiff.pm view on Meta::CPAN
## Run all commands given by --exec and concatenate their output.
##
package App::watchdiff::Command {
use parent 'Command::Run';
use Time::localtime;
sub update {
my $obj = shift;
$obj->data(join "\n",
map { $obj->execute($_)->{data} // '' } $obj->command);
$obj->date(ctime());
$obj;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/termpub/Pager.pm view on Meta::CPAN
my $self = shift;
return 0 if !$self->pad_rows;
int( ( $self->line + 1 ) * 100 / $self->pad_rows );
}
sub update_screen {
my $self = shift;
clear;
refresh;
prefresh( $self->pad, $self->line, 0, 0, 0, $self->rows - 1,
$self->pad_columns );
view all matches for this distribution
view release on metacpan or search on metacpan
xt/002_run.t view on Meta::CPAN
open my $fh, '<', "$tmpdir2/x.txt" or die "$fname: $!";
my $src = do { local $/; <$fh> };
return $src;
}
sub update {
my $fname = "$tmpdir/@{[ rand ]}.txt";
diag "updating $fname";
open my $ofh, '>', $fname or die "$fname: $!";
print $ofh "YAY " . rand();
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/AquariumHive/Plugin/AqHive/State.pm view on Meta::CPAN
return {map {
$_, $self->$_()
} @attributes};
}
sub update {
my ( $self, $data ) = @_;
for (@attributes) {
$self->$_($data->{$_}) if defined $data->{$_};
}
return $self;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ArangoDB2/Document.pm view on Meta::CPAN
}
# update
#
# PATCH /_api/document/{document-handle}
sub update
{
my($self, $data, $args) = @_;
# process args
$args = $self->_build_args($args, ['keepNull', 'policy', 'waitForSync']);
# make request
view all matches for this distribution