view release on metacpan or search on metacpan
lib/File/Tabular/Web.pm view on Meta::CPAN
$self->{results} = {count => 1, records => [$record], lineNumbers => [-1]};
}
#----------------------------------------------------------------------
sub update {
#----------------------------------------------------------------------
my ($self) = @_;
# check if there is one record to update
my $found = $self->{results};
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, '<:raw:encoding(UTF-8)', $filename
or die "Couldn't read '$filename': $!";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Filesys/POSIX/Inode.pm view on Meta::CPAN
Updates the current inode object with a list of values as returned by
L<stat()|perlfunc/stat>.
=cut
sub update {
my ( $self, @st ) = @_;
@{$self}{qw(size atime mtime ctime uid gid mode rdev)} =
( @st[ 7 .. 10 ], @st[ 4 .. 5 ], $st[2], $st[6] );
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, '<:raw:encoding(UTF-8)', $filename
or die "Couldn't read '$filename': $!";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Finance/Alpaca.pm view on Meta::CPAN
sub watchlist ( $s, $watchlist_id ) {
my $res = $s->ua->get( $s->endpoint . '/v2/watchlists/' . $watchlist_id )->result;
return $res->is_error ? ( $res->json ) : to_Watchlist( $res->json );
}
sub update_watchlist ( $s, $watchlist_id, %params ) {
my $res
= $s->ua->put( $s->endpoint . '/v2/watchlists/' . $watchlist_id => json => {%params} )
->result;
return $res->is_error ? ( $res->json ) : to_Watchlist( $res->json );
}
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/Finance/Currency/Convert/BChile.pm view on Meta::CPAN
You can pass a fake value as a parameter. In this case there's no
update from bcentral site.
=cut
sub update {
my $self = shift;
my $simulate = shift;
if ($simulate) {
$self->{'dolar'} = $simulate;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Finance/Currency/Convert/Custom.pm view on Meta::CPAN
use base qw(Finance::Currency::Convert);
use LWP::UserAgent;
our $VERSION = '1.00';
sub updateRates() {
my $self = shift;
my $sub_ref = shift;
my @CurrencyList = @_;
lib/Finance/Currency/Convert/Custom.pm view on Meta::CPAN
$self->setRate($source, $target, &{$sub_ref}($source, $target));
}
}
}
sub updateRate() {
my $self = shift;
my $sub_ref = shift;
my $source = shift;
my $target = shift;
unless(ref $sub_ref eq 'CODE'){
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Finance/Currency/Convert/DnB.pm view on Meta::CPAN
use File::Spec;
use XML::Simple;
use LWP::Simple;
use Slurp;
sub update_currency {
my $filename = File::Spec->tmpdir() . "/currency_list_" . ((defined $>) ? $> : "") . ".xml";
#only download XML twice a day
if (!-e $filename || time()-43200 < -M $filename || $_[0]) {
is_success ($_=getstore('http://www.dnbnor.no/portalfront/datafiles/miscellaneous/csv/kursliste_ws.xml', $filename))
or die 'Failed to get list of currencies; http error code: ' . $_;
view all matches for this distribution
view release on metacpan or search on metacpan
print RATES "\n";
};
close(RATES);
}
sub updateRates() {
my $self = shift;
my @CurrencyList = @_;
# test if Finance::Quote is available
eval { require Finance::Quote; };
if ($@) {
$self->setRate($source, $target, $q->currency($source, $target));
}
}
}
sub updateRate() {
my $self = shift;
my $source = shift;
my $target = shift;
# Test if Finance::Quote is available
eval { require Finance::Quote; };
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Class/MOP/Class.pm view on Meta::CPAN
return $method if defined $method;
}
return;
}
sub update_meta_instance_dependencies {
my $self = shift;
if ( $self->{meta_instance_dependencies} ) {
return $self->add_meta_instance_dependencies;
}
view all matches for this distribution
view release on metacpan or search on metacpan
examples/MyEventHandler.pm view on Meta::CPAN
{}
#
# Account and Portfolio
#
sub updateAccountValue
{}
sub updatePortfolio
{}
sub updateAccountTime
{}
#
# News Bulletins
#
sub updateNewsBulletin
{}
#
# Contract Details
#
examples/MyEventHandler.pm view on Meta::CPAN
{}
#
# Market Depth
#
sub updateMktDepth
{}
sub updateMktDepthL2
{}
#
# Financial Advisors
#
view all matches for this distribution
view release on metacpan or search on metacpan
script/privateloan.pl view on Meta::CPAN
$totalInterest =0;
$YearEnd += $Year;
print "Date\t\tPrincipal\tGross interest due\tTax due\tAmount paid\tPrincipal repaid\n";
}
sub updateLoan {
$InterestRate = $Advances[0]->{rate} if exists($Advances[0]->{rate});
$Principal += $Advances[0]->{amount} if exists($Advances[0]->{amount});
$Premium = $Advances[0]->{premium} if exists($Advances[0]->{premium});
shift @Advances;
}
sub updateTax {
$TaxRate = $TaxRates[0]->{rate} if exists($TaxRates[0]->{rate});
shift @TaxRates;
}
=head1 AUTHOR
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Finance/Quant.pm view on Meta::CPAN
$self->{config}->{'sources'} = $sources;
$self->createDataDir();
$self->_init();
return $self;
}
sub updateSymbols {
my $self = shift;
$self->getNasdaqSymbols(File::Spec->tmpdir(),$self->{config}->{sources}->{NASDAQ_SYMBOLS});
}
sub _init{
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Finance/QuoteDB.pm view on Meta::CPAN
updatedb()
=cut
sub updatedb {
my $self = shift ;
my $dsn = $self->{dsn};
INFO ("COMMAND: Update database $dsn\n");
lib/Finance/QuoteDB.pm view on Meta::CPAN
updatedbMarketStock($market,\%symbolIDs)
=cut
sub updatedbMarketStock {
my ($self,$market,$stockHash) = @_ ;
my $schema = $self->schema();
my @fqsymbols = keys(%{$stockHash}) ;
DEBUG "UPDATEDBMARKETSTOCK: $market -->" .join(",",@fqsymbols)."\n" ;
my $q = Finance::Quote->new();
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Firefox/Marionette.pm view on Meta::CPAN
$profile->save( $self->{profile_path} );
}
return;
}
sub update {
my ( $self, $update_timeout ) = @_;
my $timeouts = $self->timeouts();
my $script_timeout = $timeouts->script();
my $update_timeouts = Firefox::Marionette::Timeouts->new(
script => ( $update_timeout || _DEFAULT_UPDATE_TIMEOUT() ) *
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Firewall/Config/Connector.pm view on Meta::CPAN
$Data::dumper::Sortkeys = 1;
has dbi => ( is => 'ro', does => 'Firewall::DBI::Role', );
sub update {
my ( $self, %param ) = @_;
my ( $fwType, @process, $conf, %processForFw, $numOfProcesses, $fwIds );
my $fwInfo = $self->getFwInfo;
if ( @{$param{fwIds}} ) {
$fwIds = $param{fwIds};
lib/Firewall/Config/Connector.pm view on Meta::CPAN
while ( ( $exitPid = waitpid( -1, WNOHANG ) ) > 0 ) {
delete( $childPids{$exitPid} );
sleep(0.25);
}
}
} ## end sub update
sub saveconfig {
my ( $self, $param ) = @_;
my ( $fwId, $type, $conf ) = @{$param}{qw/fwId type conf/};
my $sonDbi = $self->dbi->clone;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Firewall/Config/Dao/Parser/Role.pm view on Meta::CPAN
}
#------------------------------------------------------------------------------
# updateNetwork æ½è±¡æ¹éæ´æ°å¤§ç½ãç§ç½æ¥å£
#------------------------------------------------------------------------------
sub updateNetwork {
my ( $self, $zones, @tables ) = @_;
# å¦æä¼ å
¥çéåå¸å¼ç¨åèªå¨ä¿®æ£
confess "ç½ç»åºåå¿
é¡»æ¯åå¸å¼ç¨" if not ref $zones eq 'HASH' || not defined $zones;
confess "å¿
é¡»æä¾è³å°ä¸ä¸ªè¡¨åæ°æ®" if scalar @tables == 0;
lib/Firewall/Config/Dao/Parser/Role.pm view on Meta::CPAN
}
#------------------------------------------------------------------------------
# updateStaticNatToNetwork æ½è±¡èªå¨ç»å® NAT ç½æ®µå°å¤§ç½æ°æ®è¡¨å
#------------------------------------------------------------------------------
sub updateStaticNatToNetwork {
my $self = shift;
# åå§ååé
my $params;
my $table = 'fw_network_main';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Firewall/Config/Initialize.pm view on Meta::CPAN
}
#------------------------------------------------------------------------------
# æ´æ°é²ç«å¢ç½æ®µä¿¡æ¯
#------------------------------------------------------------------------------
sub updateNetwork {
my ( $self, $fwId ) = @_;
my @tables = ( 'fw_network_main', 'fw_network_private' );
for my $table (@tables) {
my $sql = "select fw_id,zone,addr_range from $table where fw_id=$fwId";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Firewall/Controller/Ff.pm view on Meta::CPAN
}
#------------------------------------------------------------------------------
# updateNetwork æ´æ°ç½ç»ä¿¡æ¯ï¼å¿
é¡»æºå¸¦ fwId
#------------------------------------------------------------------------------
sub updateNetwork {
my $self = shift;
# åå§ååé
my $result;
view all matches for this distribution
view release on metacpan or search on metacpan
} ## end sub initFirewall
#------------------------------------------------------------------------------
# updateNetwork æ´æ°ç½ç»ä¿¡æ¯
#------------------------------------------------------------------------------
sub updateNetwork {
my $self = shift;
# æé result æ°æ®ç»æ
my $result = {
status => 'ok',
};
};
# è¿å计ç®ç»æ
$self->render( json => $result );
} ## end sub updateNetwork
1;
view all matches for this distribution
view release on metacpan or search on metacpan
doc/examples/petmarket/petmarket/api/cartservice.pm view on Meta::CPAN
my $result = $self->getCartTotal($cartid);
$result->{"itemoid"} = $itemid;
return $result;
}
sub updateCartItem
{
my ($self, $cartid, $itemid, $quantity) = @_;
$self->deleteCartItem($cartid, $itemid);
return $self->addCartItem($cartid, $itemid, $quantity);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/FlatFile/DataStore.pm view on Meta::CPAN
Returns a Flatfile::DataStore::Record object.
=cut
sub update {
my $self = shift;
my( $data_ref, $user_data, $pr_obj ) = $self->normalize_parms( @_ );
croak qq/Must have at least a previous preamble for update/
unless $pr_obj;
lib/FlatFile/DataStore.pm view on Meta::CPAN
# Private method.
#
# =cut
#
sub update_preamble {
my( $self, $preamble, $parms ) = @_;
my $omap = $self->specs;
for( keys %$parms ) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Flower/Files.pm view on Meta::CPAN
return $_ if ( $_->filename eq $filename );
}
return;
}
sub update_all_in_path {
my $self = shift;
my $path = shift;
# first nuke any files that have disappeared or can no
# longer be read
lib/Flower/Files.pm view on Meta::CPAN
$path
);
return;
}
sub update_files_from_arrayref {
my $self = shift;
my $ref = shift;
my @new_files;
foreach (@$ref) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Font/TTF/Cmap.pm view on Meta::CPAN
Removes from all cmaps any codepoint that map to GID=0. Note that such entries will
be re-introduced as necessary depending on the cmap format.
=cut
sub update
{
my ($self) = @_;
my ($max, $code, $gid, @keep);
return undef unless ($self->SUPER::update);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Foorum/ResultSet/Forum.pm view on Meta::CPAN
my $forum_url = '/forum/' . $forum->{forum_code};
return $forum_url;
}
sub update_forum {
my ( $self, $forum_id, $update ) = @_;
my $schema = $self->result_source->schema;
my $cache = $schema->cache();
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Footprintless/Plugin/Atlassian/Confluence/RequestBuilder.pm view on Meta::CPAN
$self->{base_url} = $base_url;
return $self;
}
sub update_content {
my ( $self, $id, $content, %options ) = @_;
return HTTP::Request->new(
'PUT',
$self->_url( "/rest/api/content/$id", %options ),
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Footprintless/Plugin/Ldap/Ldap.pm view on Meta::CPAN
$message->code() && croak( $message->error() );
return $self;
}
sub update {
my ( $self, $entry ) = @_;
croak('not connected') unless ( $self->{connection} );
$logger->tracef( 'updating %s', $entry->dn() );
my $message = $entry->update( $self->{connection} );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Footprintless/Overlay.pm view on Meta::CPAN
$resource_manager->download( $spec->{resources}{$resource}, to => $destination );
}
}
}
sub update {
my ( $self, %options ) = @_;
if ( $options{to_dir} ) {
$self->_dirs_template(
$options{to_dir},
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Form/Processor/Model.pm view on Meta::CPAN
return $item->{$name};
}
sub update_from_form {
die "must define 'update_from_form' in Form::Processor::Model subclass";
}
view all matches for this distribution