view release on metacpan or search on metacpan
3. You may otherwise modify your copy of this Package in any way, provided that
you insert a prominent notice in each changed file stating how and when you
changed that file, and provided that you do at least ONE of the following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or an
equivalent medium, or placing the modifications on a major archive site
such as ftp.uu.net, or by allowing the Copyright Holder to include your
modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
share/apache2/conf/magic.tt view on Meta::CPAN
#------------------------------------------------------------------------------
# printer: file(1) magic for printer-formatted files
#
# PostScript
0 string %! application/postscript
0 string \004%! application/postscript
# Acrobat
# (due to clamen@cs.cmu.edu)
0 string %PDF- application/pdf
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Makefile.pm view on Meta::CPAN
my $preamble = $self->preamble
? "# Preamble by $top_class $top_version\n"
. $self->preamble
: '';
my $postamble = "# Postamble by $top_class $top_version\n"
. ($self->postamble || '');
local *MAKEFILE;
open MAKEFILE, "< $makefile_name" or die "fix_up_makefile: Couldn't open $makefile_name: $!";
my $makefile = do { local $/; <MAKEFILE> };
close MAKEFILE or die $!;
inc/Module/Install/Makefile.pm view on Meta::CPAN
# XXX - This is currently unused; not sure if it breaks other MM-users
# $makefile =~ s/^pm_to_blib\s+:\s+/pm_to_blib :: /mg;
open MAKEFILE, "> $makefile_name" or die "fix_up_makefile: Couldn't open $makefile_name: $!";
print MAKEFILE "$preamble$makefile$postamble" or die $!;
close MAKEFILE or die $!;
1;
}
inc/Module/Install/Makefile.pm view on Meta::CPAN
my ($self, $text) = @_;
$self->{preamble} = $text . $self->{preamble} if defined $text;
$self->{preamble};
}
sub postamble {
my ($self, $text) = @_;
$self->{postamble} ||= $self->admin->postamble;
$self->{postamble} .= $text if defined $text;
$self->{postamble}
}
1;
__END__
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Activiti/Rest/UserAgent/LWP.pm view on Meta::CPAN
my $res;
if(uc($method) eq "GET"){
$res = $self->_get($url,$params,$headers);
}elsif(uc($method) eq "POST"){
$res = $self->_post($url,$params,$headers);
}elsif(uc($method) eq "PUT"){
$res = $self->_put($url,$params,$headers);
}elsif(uc($method) eq "DELETE"){
$res = $self->_delete($url,$params,$headers);
}else{
confess "method $method not supported";
}
$res;
}
sub _post {
my($self,$url,$params,$headers)=@_;
my @args = ($url,_construct_params_as_array($params));
my @headers;
@headers = @{ _construct_params_as_array($headers) } if is_hash_ref($headers);
push @args,@headers;
$self->ua->post(@args);
}
sub _put {
my($self,$url,$params,$headers)=@_;
my @args = ($url);
my @headers;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Adam.pm view on Meta::CPAN
);
}
sub privmsg {
my $self = shift;
POE::Kernel->post( $self->irc_session_id => privmsg => @_ );
}
sub START {
my ( $self, $heap ) = @_[ OBJECT, HEAP ];
$poe_kernel->post( $self->irc_session_id => register => 'all' );
$poe_kernel->post( $self->irc_session_id => connect => {} );
$self->info( 'connecting to ' . $self->get_server . ':' . $self->get_port );
return;
}
sub load_plugin {
view all matches for this distribution
view release on metacpan or search on metacpan
3. You may otherwise modify your copy of this Package in any way, provided that
you insert a prominent notice in each changed file stating how and when you
changed that file, and provided that you do at least ONE of the following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or an
equivalent medium, or placing the modifications on a major archive site
such as ftp.uu.net, or by allowing the Copyright Holder to include your
modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Address/PostCode/Australia.pm view on Meta::CPAN
use Moo;
use namespace::autoclean;
extends 'Address::PostCode::UserAgent';
our $BASE_URL = 'https://auspost.com.au/api/postcode/search.json';
has 'auth_key' => (is => 'ro', required => 1);
=head1 DESCRIPTION
Interface to the API provided by L<AusPost|http://auspost.com.au>.
To use the API, you would need auth key, which you can get it L<here|https://developers.auspost.com.au/apis/pacpcs-registration>.
More details can be found L<here|https://developers.auspost.com.au/apis/pac/reference/postcode-search>.
=head1 SYNOPSIS
use strict; use warnings;
use Address::PostCode::Australia;
my $auth_key = 'Your Auth Key';
my $postcode = 3002;
my $address = Address::PostCode::Australia->new({ auth_key => $auth_key });
my $places = $address->details({ postcode => $postcode });
print "Location: ", $places->[0]->location, "\n";
print "State : ", $places->[0]->state, "\n";
=head1 CONSTRUCTOR
lib/Address/PostCode/Australia.pm view on Meta::CPAN
on success. The parameters requires are list below:
+----------+----------------------------------------------------------------+
| Name | Description |
+----------+----------------------------------------------------------------+
| postcode | Mandatory parameter unless location is passed. |
| | |
| location | Mandatory paramerer unless postcode is passed. |
| | |
| state | Optional parameter. |
+----------+----------------------------------------------------------------+
=cut
sub details {
my ($self, $params) = @_;
my $keys = { postcode => 0, location => 0, state => 0 };
my $url = _get_url($keys, $params);
my $response = $self->get($url, { 'auth-key' => $self->auth_key });
my $contents = from_json($response->{'content'});
my $places = [];
lib/Address/PostCode/Australia.pm view on Meta::CPAN
my ($keys, $values) = @_;
validate($keys, $values);
my $url = $BASE_URL;
if (exists $values->{'postcode'}) {
$url .= sprintf("?q=%d", $values->{'postcode'});
}
elsif (exists $values->{'location'}) {
$url .= sprintf("?q=%s", $values->{'location'});
}
else {
die "ERROR: Missing required key postcode/location.\n";
}
if (exists $values->{'state'}) {
$url .= sprintf("&state=%s", $values->{'state'});
}
lib/Address/PostCode/Australia.pm view on Meta::CPAN
L<https://github.com/manwar/Address-PostCode-Australia>
=head1 BUGS
Please report any bugs or feature requests to C<bug-address-postcode-australia at rt.cpan.org>,
or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Address-PostCode-Australia>.
I will be notified, and then you'll automatically be notified of progress on your
bug as I make changes.
=head1 SUPPORT
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Address/PostCode/India.pm view on Meta::CPAN
=head1 DESCRIPTION
The API service is provided by L<website|http://getpincodes.info/apidetail.php>.
A Postal Index Number or PIN or Pincode is the post office numbering or post code
system used by India Post, the Indian postal administration. The code is 6 digits
long. The PIN was introduced on 15 August 1972.
There are nine PIN zones in India,including eight regional zones & one functional
zone (Indian Army). The first digit of the PIN code indicates the region. The
second digit indicates the sub-region, and the third digit indicates the sorting
district within the region.The final three digits are assigned to individual post
offices.
+-------------------------+-------------------------------------------------+
| First 2/3 Digits of PIN | Postal Circle |
+-------------------------+-------------------------------------------------+
lib/Address/PostCode/India.pm view on Meta::CPAN
L<https://github.com/Manwar/Address-PostCode-India>
=head1 BUGS
Please report any bugs or feature requests to C<bug-address-postcode-india at rt.cpan.org>,
or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Address-PostCode-India>.
I will be notified, and then you'll automatically be notified of progress on your
bug as I make changes.
=head1 SUPPORT
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Address/PostCode/UK.pm view on Meta::CPAN
use Moo;
use namespace::autoclean;
extends 'Address::PostCode::UserAgent';
our $BASE_URL = 'http://uk-postcodes.com';
=head1 DESCRIPTION
Interface to the API provided by L<UK Postcodes|http://uk-postcodes.com/>.
=head1 NOTE
Data may be used under the terms of the OS OpenData licence. Northern Ireland
postcode data may be used under the terms of the ONSPD licence. Currently, there
are no limitations on usage, but they may introduce rate limiting in future.
=head1 METHODS
=head2 details()
It returns an object of type L<Address::PostCode::UK::Place> on success. The only
parameter requires is the post code.
use strict; use warnings;
use Address::PostCode::UK;
my $address = Address::PostCode::UK->new;
my $post_code = 'Post Code';
my $place = $address->details($post_code);
print "Latitude : ", $place->geo->lat, "\n";
print "Longitude: ", $place->geo->lng, "\n";
=cut
sub details {
my ($self, $post_code) = @_;
die "ERROR: Missing required param 'post code'.\n" unless defined $post_code;
die "ERROR: Invalid format for UK post code [$post_code].\n" unless ($post_code =~ /[A-Z]{1,2}[0-9][0-9A-Z]?\s?[0-9][A-Z]{2}/gi);
$post_code =~ s/\s//g;
my $url = sprintf("%s/postcode/%s.json", $BASE_URL, $post_code);
my $response = $self->get($url);
my $contents = from_json($response->{'content'});
my ($geo, $ward, $council, $constituency);
$geo = Address::PostCode::UK::Place::Geo->new($contents->{'geo'})
lib/Address/PostCode/UK.pm view on Meta::CPAN
}
=head2 nearest()
It returns ref to a list of objects of type L<Address::PostCode::UK::Location> on
success. The required parameters are the post code and distance in miles.
use strict; use warnings;
use Address::PostCode::UK;
my $address = Address::PostCode::UK->new;
my $post_code = 'Post Code';
my $distance = 1;
my $locations = $address->nearest($post_code, $distance);
print "Location Latitude : ", $locations->[0]->lat, "\n";
print "Location Longitude: ", $locations->[0]->lng, "\n";
=cut
sub nearest {
my ($self, $post_code, $distance) = @_;
die "ERROR: Missing required param 'post code'.\n" unless defined $post_code;
die "ERROR: Missing required param 'distance'.\n" unless defined $distance;
die "ERROR: Invalid format for UK post code [$post_code].\n" unless ($post_code =~ /[A-Z]{1,2}[0-9][0-9A-Z]?\s?[0-9][A-Z]{2}/gi);
die "ERROR: Invalid distance [$distance].\n" unless ($distance =~ /^[\d+]$/);
$post_code =~ s/\s//g;
my $url = sprintf("%s/postcode/nearest?postcode=%s&miles=%d&format=json", $BASE_URL, $post_code, $distance);
my $response = $self->get($url);
my $contents = from_json($response->{'content'});
my $locations = [];
foreach (@$contents) {
lib/Address/PostCode/UK.pm view on Meta::CPAN
L<https://github.com/manwar/Address-PostCode-UK>
=head1 BUGS
Please report any bugs or feature requests to C<bug-address-postcode-uk at rt.cpan.org>,
or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Address-PostCode-UK>.
I will be notified, and then you'll automatically be notified of progress on your
bug as I make changes.
=head1 SUPPORT
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Address/PostCode/UserAgent.pm view on Meta::CPAN
L<https://github.com/Manwar/Address-PostCode-UserAgent>
=head1 BUGS
Please report any bugs or feature requests to C<bug-address-postcode-useragent at
rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Address-PostCode-UserAgent>.
I will be notified, and then you'll automatically be notified of progress on your
bug as I make changes.
=head1 SUPPORT
view all matches for this distribution
view release on metacpan or search on metacpan
that you insert a prominent notice in each changed file stating how and
when you changed that file, and provided that you do at least ONE of the
following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or
an equivalent medium, or placing the modifications on a major archive
site such as uunet.uu.net, or by allowing the Copyright Holder to include
your modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ado/Manual/Contributing.pod view on Meta::CPAN
that comes with DBIx::Simple::Class.
Feel free to contribute to L<DBIx::Simple::Class>.
Minimize SQL complexity. Write ANSI SQL if you need to write SQL.
Write your SQL in a way to be compatible with
L<SQLite|http://sqlite.org/>, L<MySQL|http://dev.mysql.com/>
and L<PostgreSQL|http://www.postgresql.org/>.
Use the L<DBIx::Simple::Class/SQL> feature to achieve this.
See L<DBIx::Simple::Class/SQL> and its source to figure out how to do it.
To guess the current driver:
use DBI::Const::GetInfoType;
view all matches for this distribution
view release on metacpan or search on metacpan
3. You may otherwise modify your copy of this Package in any way, provided that
you insert a prominent notice in each changed file stating how and when you
changed that file, and provided that you do at least ONE of the following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or an
equivalent medium, or placing the modifications on a major archive site
such as ftp.uu.net, or by allowing the Copyright Holder to include your
modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
Infix2Postfix.pm view on Meta::CPAN
# Below is the stub of documentation for your module. You better edit it!
=head1 NAME
Affix::Infix2Postfix - Perl extension for converting from infix
notation to postfix notation.
=head1 SYNOPSIS
use Affix::Infix2Postfix;
Infix2Postfix.pm view on Meta::CPAN
|| die "Error in '$str': ".$inst->{ERRSTR}."\n";
=head1 DESCRIPTION
Infix2Postfix as the name suggests converts from infix to postfix
notation. The reason why someone would like to do this is that postfix
notation is generally much easier to do in computers. For example take
an expression like: a+b+c*d. For us humans it's pretty easy to do that
calculation. But it's actually much better for computers to get a
string of operations such as: a b + c d * +, where the variable names
mean put variable on stack.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Affix/Build.pm view on Meta::CPAN
}
return { file => $obj, libs => ['gnat'] };
}
#~ https://github.com/bennoleslie/haskell-shared-example
#~ https://www.hobson.space/posts/haskell-foreign-library/
method _build_haskell ( $src, $out, $mode ) {
my $file = $src->{path};
my $ghc = $self->_can_run('ghc') // croak "GHC not found";
if ( $mode eq 'dynamic' ) {
my @cmd = ( $ghc, '-shared', '-dynamic', "$file", '-o', "$out" );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Agent/TCLI/Package/Net/HTTP.pm view on Meta::CPAN
$self->requests->{$request->id}{'request'} = $request;
$self->requests->{$request->id}{'param'} = $param;
# execution
$kernel->post( 'http-client' => 'request' => 'ProcessResponse' =>
GET($param->{'url'},
Connection => "Keep-Alive",
),
$request->id, #tag
'ResponseProgress', #progress callback
lib/Agent/TCLI/Package/Net/HTTP.pm view on Meta::CPAN
my $param = $self->requests->{$id}{'param'};
$param->{'try_count'}++ ;
# execution
$kernel->post( 'http-client' => 'request' => 'ProcessResponse' =>
GET($param->{'url'},
Connection => "Keep-Alive",
),
$id,
'ResponseProgress', #progress callback
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Agent/TCLI/Control.pm view on Meta::CPAN
Transports should send command requests to Execute. The can be either
plain text as entered by the user or request objects.
Usage:
$kernel->post( 'Control' => 'Execute' => $input );
=cut
sub Execute {
my ($kernel, $self, $input) =
lib/Agent/TCLI/Control.pm view on Meta::CPAN
# parsing. OK, we'll take that. Later we'll use the real args.
{
@args = reverse( @{$request->command} );
}
# add self to sender/postback stack so that we can put ourself
# into PostResponse to Transport to handle many contrls per transport
# Or should I just stuff that into the request at the Transport
# Well, what if there isn't a request yet at the transport?
# Either the request exists or it will come from the control....
# Or just make the stateful transports create a request...
lib/Agent/TCLI/Control.pm view on Meta::CPAN
# # usable in more than one context, or even in all.
#
# # The command is sent as the first arg in @args.
#
# # Each command gets the following to execute:
# # $postback -> to send the response
# # \@args -> typically the user input in an array
# # $input -> the original user input
# # $thread -> the thread object for the user's session
# # The current context is stored in the $thread as an array but is
# # retrievable as a string as well.
lib/Agent/TCLI/Control.pm view on Meta::CPAN
{
if ( !defined($request->args) || $request->depth_args == 0 )
{
$request->args( \@args );
$request->command( $context );
$self->Verbose( "Execute: Request post FindCommand".$request->dump(1),3);
}
# The response may bypass the Control's AsYouWished, and go
# directly back to the Transport if that is what is $request(ed)
if ( $cmd->call_style eq 'sub')
lib/Agent/TCLI/Control.pm view on Meta::CPAN
}
elsif ( $cmd->call_style eq 'session')
{
$self->Verbose("Execute: Executing session ".$cmd->command.
"->".$cmd->handler." \n");
$kernel->post($cmd->command => $cmd->handler =>
$request );
return;
}
}
else
lib/Agent/TCLI/Control.pm view on Meta::CPAN
{
my $request = Agent::TCLI::Request->new(
'args' => \@args,
'command' => $context,
'sender' => $self,
'postback' => 'AsYouWished',
'input' => $input,
'verbose' => $self->verbose,
'do_verbose' => $self->do_verbose,
lib/Agent/TCLI/Control.pm view on Meta::CPAN
}
elsif ( $cmd->call_style eq 'session')
{
$self->Verbose("Execute: Executing session ".$cmd->command.
"->".$cmd->handler." \n");
$kernel->post($cmd->command => $cmd->handler =>
$request );
return;
}
}
}
lib/Agent/TCLI/Control.pm view on Meta::CPAN
# Is this what I want to do? Or should I Respond?
# The Control always acts directly as the interface between Transport
# and control is strictly defined. If we're here, there probably isn't a
# request object to respond to.
$self->Verbose( "AsYouWished: self dump \n",5,$self );
$kernel->post( $self->owner->session->ID => 'PostResponse' => $response, $self );
} #end sub control_AsYouWished
#sub control_err {
# my ($err, $msg) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
that you insert a prominent notice in each changed file stating how and
when you changed that file, and provided that you do at least ONE of the
following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or
an equivalent medium, or placing the modifications on a major archive
site such as uunet.uu.net, or by allowing the Copyright Holder to include
your modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Aion/Format.pm view on Meta::CPAN
<center>
<h2><a href={{> author_link }}>{{: author_name }}</a><br>
{{ title }}</h2>
},
q{
<li><A HREF="{{ comments_link }}">((Comments: {{ comments }}, last from {{ last_comment_posted }}.||Added comment))</A>
<li><a href="{{ author_link }}">{{ author_name }}</a>
[[ (translate: {{ interpreter_name }})]]
(<u>{{ author_email }}</u>)
<li>Year: {{ posted }}
},
q{
<li><B><font color=#393939>Annotation:</font></b><br><i>{{ annotation_html }}</i></ul>
</ul></font>
</td></tr>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Aion/Surf.pm view on Meta::CPAN
$content
}
sub head (;$) { my $x = @_ == 0? $_: shift; surf HEAD => ref $x? @{$x}: $x }
sub get (;$) { my $x = @_ == 0? $_: shift; surf GET => ref $x? @{$x}: $x }
sub post (@) { my $x = @_ == 0? $_: \@_; surf POST => ref $x? @{$x}: $x }
sub put (@) { my $x = @_ == 0? $_: \@_; surf PUT => ref $x? @{$x}: $x }
sub patch(@) { my $x = @_ == 0? $_: \@_; surf PATCH => ref $x? @{$x}: $x }
sub del (;$) { my $x = @_ == 0? $_: shift; surf DELETE => ref $x? @{$x}: $x }
lib/Aion/Surf.pm view on Meta::CPAN
# ÐÑпÑавлÑÐµÑ ÑообÑение ÑелегÑам
sub chat_message($$) {
my ($chat_id, $message) = @_;
my $ok = post "https://api.telegram.org/bot${\ TELEGRAM_BOT_TOKEN}/sendMessage", response => \my $response, json => {
chat_id => $chat_id,
text => $message,
disable_web_page_preview => 1,
parse_mode => 'Html',
};
lib/Aion/Surf.pm view on Meta::CPAN
sub bot_update() {
my @updates;
for(my $offset = 0;;) {
my $ok = post "https://api.telegram.org/bot${\ TELEGRAM_BOT_TOKEN}/getUpdates", json => {
offset => $offset,
};
die $ok->{description} if !$ok->{ok};
lib/Aion/Surf.pm view on Meta::CPAN
my $response = HTTP::Response->new(200, "OK");
given ($request->method . " " . $request->uri) {
$response->content("get") when $_ eq "GET http://example/ex";
$response->content("head") when $_ eq "HEAD http://example/ex";
$response->content("post") when $_ eq "POST http://example/ex";
$response->content("put") when $_ eq "PUT http://example/ex";
$response->content("patch") when $_ eq "PATCH http://example/ex";
$response->content("delete") when $_ eq "DELETE http://example/ex";
$response->content('{"a":10}') when $_ eq "PATCH http://example/json";
lib/Aion/Surf.pm view on Meta::CPAN
head "http://example/not-found" # -> ""
surf HEAD => "http://example/ex" # -> 1
surf HEAD => "http://example/not-found" # -> ""
[map { surf $_ => "http://example/ex" } qw/GET HEAD POST PUT PATCH DELETE/] # --> [qw/get 1 post put patch delete/]
patch "http://example/json" # --> {a => 10}
[map patch, qw! http://example/ex http://example/json !] # --> ["patch", {a => 10}]
lib/Aion/Surf.pm view on Meta::CPAN
=head2 get (;$url)
Get content from resurce in internet.
=head2 post (;$url, [$headers_href], %params)
Add content resurce in internet.
=head2 put (;$url, [$headers_href], %params)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Aion.pm view on Meta::CPAN
=encoding utf-8
=head1 NAME
Aion - a postmodern object system for Perl 5, such as âMouseâ, âMooseâ, âMooâ, âMoâ and âMâ, but with improvements
=head1 VERSION
1.9
view all matches for this distribution
view release on metacpan or search on metacpan
3. You may otherwise modify your copy of this Package in any way, provided that
you insert a prominent notice in each changed file stating how and when you
changed that file, and provided that you do at least ONE of the following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or an
equivalent medium, or placing the modifications on a major archive site
such as ftp.uu.net, or by allowing the Copyright Holder to include your
modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
3. You may otherwise modify your copy of this Package in any way, provided that
you insert a prominent notice in each changed file stating how and when you
changed that file, and provided that you do at least ONE of the following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or an
equivalent medium, or placing the modifications on a major archive site
such as ftp.uu.net, or by allowing the Copyright Holder to include your
modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
3. You may otherwise modify your copy of this Package in any way, provided that
you insert a prominent notice in each changed file stating how and when you
changed that file, and provided that you do at least ONE of the following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or an
equivalent medium, or placing the modifications on a major archive site
such as ftp.uu.net, or by allowing the Copyright Holder to include your
modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
that you insert a prominent notice in each changed file stating how and
when you changed that file, and provided that you do at least ONE of the
following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or
an equivalent medium, or placing the modifications on a major archive
site such as uunet.uu.net, or by allowing the Copyright Holder to include
your modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Makefile.pm view on Meta::CPAN
my $top_version = $self->_top->VERSION || '';
my $preamble = $self->preamble
? "# Preamble by $top_class $top_version\n" . $self->preamble
: '';
my $postamble = "# Postamble by $top_class $top_version\n" .
($self->postamble || '');
open MAKEFILE, '< Makefile' or die $!;
my $makefile = do { local $/; <MAKEFILE> };
close MAKEFILE;
inc/Module/Install/Makefile.pm view on Meta::CPAN
$makefile =~ s/^(FULLPERL = .*)/$1 -Iinc/m;
$makefile =~ s/^(PERL = .*)/$1 -Iinc/m;
open MAKEFILE, '> Makefile' or die $!;
print MAKEFILE "$preamble$makefile$postamble";
close MAKEFILE;
}
sub preamble {
my ($self, $text) = @_;
$self->{preamble} = $text . $self->{preamble} if defined $text;
$self->{preamble};
}
sub postamble {
my ($self, $text) = @_;
$self->{postamble} ||= $self->admin->postamble;
$self->{postamble} .= $text if defined $text;
$self->{postamble}
}
1;
__END__
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Makefile.pm view on Meta::CPAN
depend => 'HASH',
dist => 'HASH',
dynamic_lib=> 'HASH',
linkext => 'HASH',
macro => 'HASH',
postamble => 'HASH',
realclean => 'HASH',
test => 'HASH',
tool_autosplit => 'HASH',
# special cases where you can use makemaker_append
inc/Module/Install/Makefile.pm view on Meta::CPAN
my $preamble = $self->preamble
? "# Preamble by $top_class $top_version\n"
. $self->preamble
: '';
my $postamble = "# Postamble by $top_class $top_version\n"
. ($self->postamble || '');
local *MAKEFILE;
open MAKEFILE, "+< $makefile_name" or die "fix_up_makefile: Couldn't open $makefile_name: $!";
eval { flock MAKEFILE, LOCK_EX };
my $makefile = do { local $/; <MAKEFILE> };
inc/Module/Install/Makefile.pm view on Meta::CPAN
# XXX - This is currently unused; not sure if it breaks other MM-users
# $makefile =~ s/^pm_to_blib\s+:\s+/pm_to_blib :: /mg;
seek MAKEFILE, 0, SEEK_SET;
truncate MAKEFILE, 0;
print MAKEFILE "$preamble$makefile$postamble" or die $!;
close MAKEFILE or die $!;
1;
}
inc/Module/Install/Makefile.pm view on Meta::CPAN
my ($self, $text) = @_;
$self->{preamble} = $text . $self->{preamble} if defined $text;
$self->{preamble};
}
sub postamble {
my ($self, $text) = @_;
$self->{postamble} ||= $self->admin->postamble;
$self->{postamble} .= $text if defined $text;
$self->{postamble}
}
1;
__END__
view all matches for this distribution
view release on metacpan or search on metacpan
3. You may otherwise modify your copy of this Package in any way, provided that
you insert a prominent notice in each changed file stating how and when you
changed that file, and provided that you do at least ONE of the following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or an
equivalent medium, or placing the modifications on a major archive site
such as ftp.uu.net, or by allowing the Copyright Holder to include your
modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
MIN_PERL_VERSION => 5.006,
) : ()),
);
# Possible fix for FreeBSD
sub MY::postamble {
return <<'END'
test_dynamic ::
END
}
view all matches for this distribution
view release on metacpan or search on metacpan
init_i18nl14n||5.006000|
init_ids|||
init_interp|||
init_main_stash|||
init_perllib|||
init_postdump_symbols|||
init_predump_symbols|||
init_stacks||5.005000|
init_tm||5.007002|
inplace_aassign|||
instr|||n
view all matches for this distribution